Skip to main content

UPDATE Videos

Overview


The following table contains information about the UPDATE method in regards to the managing process, more precisely when you want to make a UPDATE request.

UPDATE Video
MethodUPDATE
URL or Endpoint/api/projects/projectId/videos
HeadersAuthorization
ParametersprojectId
BodyCheck the request body below.

The description of the URL parameter is as follows:

projectId Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique Id of the project.

Request Body

{
"publicId": "string",
"name": "string",
"title": "string",
"description": "string",
"publishDate": "2022-04-21T13:46:40.426Z",
"publishEndDate": "2022-04-21T13:46:40.426Z",
"videoPagePermalink": "string",
"publicAdScheduleId": "string",
"categoryId": 0,
"entityRestrictionId": 0,
"skipIntroState": true,
"skipIntroFrom": 0,
"skipIntroTo": 0,
"source": "string",
"author": "string",
"tagNames": ["string"],
"flagIds": [0],
"customParameters": [
{
"key": "string",
"value": "string"
}
]
}

Information about the fields that appear when you receive the response are displayed in the table below.

Parameter NameMandatoryTypeDescription
publicIdYesinteger($int32)Public Id of the video
nameYesstringName of the video
titleYesstringTitle of the video
descriptionYesstringDescription of the video
publishDateYesDatePublish date of the video
publishEndDateYesDatePublish end date of the video
videoPagePermalinkYesstringPermalink of the video page
publicAdScheduleIdYesstringThe Id of the ad schedule.
categoryIdYesinteger($int32)Id of the category
entityRestrictionIdYesinteger($int32)Entity restriction Id
skipIntroStateYesbooleanThe state of the skip intro option.
skipIntroFromYesinteger($int32)The amount of time the intro skips from
skipIntroToYesinteger($int32)The amount of time the intro skips to
sourceYesstringThe source of the video.
authorYesstringThe author of the video.
tagNamesYesarray[string]An array of video tags.
flagIdsYesarray[integer($int32)]An array of flag Ids.
customParametersYesarray[Object]An array of flag Ids.
keyYesstringThe key of the custom parameter.
valueYesstringThe value of the custom parameter.

Response

{
"success": true,
"errors": ["string"],
"messages": ["string"],
"result": {
"publicId": "string",
"name": "string",
"title": "string",
"description": "string",
"thumbnailUrl": "string",
"publishDate": "2022-04-21T13:46:40.431Z",
"publishEndDate": "2022-04-21T13:46:40.431Z",
"insertDate": "2022-04-21T13:46:40.431Z",
"publishStatusId": 0,
"publishStatusName": "string",
"duration": 0,
"videoPagePermalink": "string",
"userName": "string",
"categoryId": 0,
"publicAdScheduleId": "string",
"restrictionId": 0,
"skipIntroState": true,
"skipIntroFrom": 0,
"skipIntroTo": 0,
"geoBlockingRuleId": 0,
"canEmbed": true,
"source": "string",
"author": "string",
"tagNames": ["string"],
"customParameters": [
{
"id": 0,
"key": "string",
"value": "string"
}
],
"flagIds": [0]
},
"resultInfo": "string",
"statusCode": 0
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
successboolIf the response is successful it will return true. Otherwise will return false
errorsarray[string]Indicates if there was an error
messagesarray[string]Returns the response message from back-end
resultarray[Object]Returns the response object
publicIdinteger($int32)Public Id of the video
namestringName of the video
titlestringTitle of the video
descriptionstringDescription of the video
thumbnailUrlstringThe URL of the thumbnail.
publishDateDateDate when the video was published
publishEndDateDateDate when video will not be available.
insertDateDateDate when the video was inserted
publishStatusIdinteger($int32)Id when published
publishStatusNamestringThe name of the publish status.
durationstringDuration of the video
videoPagePermalinkstringPermalink
userNamestringThe name of the user.
categoryIdinteger($int32)Id of the category.
publicAdScheduleIdstringThe public Id of the ad schedule.
restrictionIdinteger($int32)Id of the restriction.
skipIntroStateYesbooleanThe state of the skip intro option.
callBackUrlstringURL to call when encode is finished
skipIntroFromYesinteger($int32)The amount of time the intro skips from
skipIntroToYesinteger($int32)The amount of time the intro skips to
geoBlockingRuleIdYesinteger($int32)The Id of the geo blocking rule.
canEmbedbooleanIndicates whether the video can be embedded.
sourceYesstringThe source of the video.
authorYesstringThe author of the video.
tagNamesYesarray[string]An array of video tags.
flagIdsYesarray[integer($int32)]An array of flag Ids.
customParametersYesarray[Object]An array of flag Ids.
keyYesstringThe key of the custom parameter.
valueYesstringThe value of the custom parameter.
resultInfostringReturns extra information about the result
statusCodeinteger($int32)Returns the HTTP Status Code

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