schedule_add
schedule_add
사용자가 정의한 스케줄을 추가 또는 수정을 위해 API 서버에 보냅니다.
API 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~20399
API Data Error
20400~20499
API DB Error
31000~31999
채널 조건 Error
32000~32999
스케줄 조건 Error
API 요청 후 result_code 값이 0이 아닌 경우, API 처리에 실패했다는 뜻입니다. 해당하는 경우 CDN 담당자에게 result_code , result_message 내용을 참조하여 문의바랍니다.
0
SUCCESS
API 처리 성공
31002
channel_status_error
채널의 상태가 On-Air가 아니기 때문에 API 처리 실패
32000
schedule_apply_fail
스케줄 적용 실패
32002
schedule_organization_err
스케줄 편성 실패
32003
schedule_startdate_err
스케줄 시작일 오류
result_message 는 API 서버에서 성공, 실패한 원인에 대한 내용을 기술합니다. schedule_add API 사용시 발생할 수 있는 가장 많은 메세지들에 대한 설명을 기술합니다.
Manager의 스케줄 채널을 추가 또는 수정합니다.
스케줄 설정을 적용하려는 대상 채널의 고유 식별 자
API 호출 성공, Successful Operation
정의되지 않은 API 호출, Undefined API Call
존재하지 않는 App 혹은 Stream, Undefined App or Stream
허용하지 않는 Method 요청, Deny for Method
서버 에러, Server Error
POST /schedule_add/{channel_id} HTTP/1.1
Host: solrtmp.solbox.com:8080
Content-Type: application/json
Accept: */*
Content-Length: 304
{
"programs": [
{
"id": "test_abcd22",
"category": "advt",
"type": "single",
"sources": [
{
"ref": "1080p",
"path": "/CLIP/test_1080p.mp4",
"playtime": 60000,
"storage": [
"sol_1"
]
}
]
}
],
"schedule": {
"repeat": true,
"list": [
{
"order": 0,
"ref_id": "test_abcd22",
"start_date": "20250228 11:52:00",
"start_offset": 0,
"end_offset": 60000
}
]
}
}{
"result_code": 0,
"result_msg": "success"
}Last updated