Request & Response
Example Request & Response
Request
POST /schedule_add
Example
curl –X POST -H "X-LMC-Auth:1234567890123456789012345678901234567890123456789012345678901234" -H "X-LMC-ID: [email protected]" "http://{도메인 또는, IP 주소}:{포트}/solrtmpManager/api/v1/schedule_add/{channel_id} --data
Response
200 OK
{"result_code":0,"result_msg":"SUCCESS", ...}200 OK
{"result_code":20000,"result_msg":"JSON data is Null"}Body
result code 와 result message 별 설명은 다음과 같습니다.
result_code 값의 대한 정의는 아래와 같습니다.
0 : 성공, 정상
10000 ~ 19999 : API Server Error
20000 ~ 29999 : Data Error
30000 ~ : Reserved
보다 자세한 항목 및 발생할 수 있는 항목에 대한 정의는 아래 표와 같습니다.
0
SUCCESS
Success
10000
SYSTEM_UNKNOWN_ERROR
System Unknown Error.
20000
JSON_DATA_NULL
JSON data is null.
20001
JSON_DATA_INVALID
JSON data is invalid.
20102
INVALID_COMMAND
Invalid command.
20106
INVALID_PARAMETER
invalid parameter(X-LMC-Auth or X-LMC-ID)
20121
INVALID_USER
사용자 정보 에러
20400
DATA_INSERT_DB_FAIL
DB insert fail.
20401
DATA_UPDATE_DB_FAIL
DB update fail.
20402
DATA_DELETE_DB_FAIL
DB delete fail.
20403
DATA_SELECT_DB_FAIL
DB select fail.
25000
AUTH_FAIL
Authentication fail.
30000
UNKNOWN_USER
unknown user
30001
USER_PERMISSION_DENIED
user permission denied
Last updated