POST Video
Overview
The following table contains important information about the POST
method in regards to the managing process.
POST Video | |
---|---|
Method | POST |
URL or Endpoint | /api/projects/projectId /videos/id /ad-schedule |
Parameters | id, projectId |
Body | entityId, adScheduleId |
The description of the URL parameters is as follows:
URL Parameter Name | Mandatory | Type | Description |
---|---|---|---|
projectId | Yes | string | Unique Id of the project. |
id | Yes | string | Unique id of the encoded video. |
Request Body
{
"entityId": 2,
"adScheduleId": 6
}
Information about the fields that appear when you receive the response are displayed in the table below.
Parameter Name | Mandatory | Type | Description |
---|---|---|---|
entityId | Yes | integer($int32) | Entity Id |
adScheduled | Yes | integer($int32) | Ad schdeule Id |
Response
{
"id": 6,
"entityId": 2,
"adScheduleId": 6,
"adScheduleName": null
}
Information about the fields that appear when you receive the response are displayed in the table below.
Field Name | Type | Description |
---|---|---|
id | integer($int32) | Id of the video |
entityId | integer($int32) | Entity Id |
adSchdeuled | integer($int32) | Id of the ad schedule |
adSchdeuleName | string | Name of the ad schedule |
If the action is successful, the service sends back an HTTP 200 or 201 response.
Errors
For information about the errors that are common to all actions, see Common Errors:
HTTP Status Code 400: Bad Request
HTTP Status Code 401: Unauthorized
HTTP Status Code 403: Forbidden
HTTP Status Code 404: Result Not Found
HTTP Status Code 500: Internal Server Error
HTTP Status Code 503: Backend Fetch Failed