Skip to main content

POST Video

Overview


The following table contains important information about the POST method in regards to the managing process.

POST Video
MethodPOST
URL or Endpoint/api​/projects​/projectId​/videos​/id​/ad-schedule
Parametersid, projectId
BodyentityId, adScheduleId

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique Id of the project.
idYesstringUnique 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 NameMandatoryTypeDescription
entityIdYesinteger($int32)Entity Id
adScheduledYesinteger($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 NameTypeDescription
idinteger($int32)Id of the video
entityIdinteger($int32)Entity Id
adSchdeuledinteger($int32)Id of the ad schedule
adSchdeuleNamestringName 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