program_mod
program_mod
사용자가 정의했던 파일 채널에 대한 내용을 수정하여 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 처리 성공
31001
channel_already_offair
채널의 상태가 Off-Air 이기 때문에 API 처리 실패
31002
channel_status_error
채널의 상태가 On-Air가 아니기 때문에 API 처리 실패
result_message 는 API 서버에서 성공, 실패한 원인에 대한 내용을 기술합니다. program_mod API 사용시 발생할 수 있는 가장 많은 메세지들에 대한 설명을 기술합니다.
Manager의 스케줄에 할당된 파일 채널을 수정합니다.
스케줄 설정을 적용하려는 대상 채널의 고유 식별 자
Successful operation
정의되지 않은 API 호출, Undefined API Call
존재하지 않는 App 혹은 Stream, Undefined App or Stream
허용하지 않는 Method 요청, Deny for Method
서버 에러, Server Error
POST /program_mod/{channel_id} HTTP/1.1
Host: solrtmp.solbox.com:8080
Content-Type: application/json
Accept: */*
Content-Length: 164
{
"programs": [
{
"id": "test_abcd22",
"category": "advt",
"type": "single",
"sources": [
{
"ref": "1080p",
"path": "/CLIP/test_1080p.mp4",
"playtime": 60000,
"storage": [
"sol_1"
]
}
]
}
]
}{
"result_code": 0,
"result_msg": "success"
}Last updated