Skip to main content

PUT Videos

Overview


The following table contains information about the PUT method for managing the process for updating a specific video.

PUT Video
MethodPUT
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": "2024-05-21T08:03:40.817Z",
"publishEndDate": "2024-05-21T08:03:40.817Z",
"shareUrl": "string",
"publicAdScheduleId": "string",
"categoryId": 0,
"geoBlockingRuleId": 0,
"entityRestrictionId": 0,
"skipIntroState": true,
"skipIntroFrom": 0,
"skipIntroTo": 0,
"source": "string",
"author": "string",
"customOverlayState": true,
"videoLockState": true,
"lockAfter": 0,
"password": "string",
"passwordProtectedTitle": "string",
"passwordProtectedDescription": "string",
"chapterState": true,
"visibilityOptionId": 0,
"tagNames": [
"string"
],
"flagIds": [
0
],
"customParameters": [
{
"key": "string",
"value": "string"
}
],
"customOverlays": [
{
"caption": "string",
"secondsFrom": 0,
"secondsTo": 0,
"position": 1
}
],
"chapters": [
{
"title": "string",
"time": 0
}
]
}

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

Parameter NameMandatoryTypeDescription
publicIdYesstringPublic Id of the video
nameYesstringName of the video
titleYesstringTitle of the video
descriptionNostringDescription of the video
publishDateYesDatePublish date of the video
publishEndDateNoDatePublish end date of the video
shareUrlNostringA share URL redirects viewers to a custom destination when they share a video; if not provided, the player shares the video's embed location
publicAdScheduleIdNostringThe Id of the ad schedule
categoryIdNointeger($int32)Id of the category
geoblockingRuleIdNointeger($int32)Id of the geoblocking rule
entityRestrictionIdYesinteger($int32)Entity restriction Id
skipIntroStateNoboolThe state of the skip intro option
skipIntroFromNointeger($int32)The amount of time the intro skips from
skipIntroToNointeger($int32)The amount of time the intro skips to
sourceNostringThe source of the video
authorNostringThe author of the video
customOverlayStateNoboolState of custom overlays
videoLockStateNoboolState of video lock
lockAfterYesinteger($int32)Specifies duration before video is locked
passwordYesstringSpecifies the password for locked video
passwordProtectedTitleNostringCustom player title for password protected videos
passwordProtectedDescriptionNostringCustom player description for password protected videos
chapterStateNoboolState of the chapters
visibilityOptionIdYesinteger($int32)Id of the visibility option
tagNamesNoarray[string]An array of video tags
flagIdsNoarray[integer($int32)]An array of flag Ids
customParametersNoarray[Object]An array of custom parameters
keyYesstringThe key of the custom parameter
valueYesstringThe value of the custom parameter
customOverlaysNoarray[Object]An array of custom overlays
captionYesstringCaption of custom overlay
secondsFromYesinteger($int32)Specifies start time in seconds
secondsToYesinteger($int32)Specifies end time in seconds
positonYesinteger($int32)Specifies the position
chaptersNoarray[Object]An array of chapters
titleNostringTitle of chapter
timeYesinteger($int32)Specifies end time in seconds for the specific chapter

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"publicId": "{videoId}",
"id": "{videoId}",
"name": "{name}",
"title": "{title}",
"description": "",
"thumbnailUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/thumbnails/retina.jpg",
"filmstripUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/thumbnails/filmstrip0.jpg",
"filmstripVttUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/thumbnails/filmstrip.vtt",
"publishDate": "2024-05-21T10:01:11.833481",
"publishEndDate": null,
"shareUrl": "string",
"liveCutStartDate": null,
"liveCutEndDate": null,
"insertDate": "2024-05-21T08:01:05.4141661",
"publishStatusId": 2,
"publishStatusName": "Ready",
"duration": 150,
"userName": null,
"categoryId": null,
"publicAdScheduleId": null,
"restrictionId": null,
"skipIntroState": false,
"skipIntroFrom": null,
"skipIntroTo": null,
"geoBlockingRuleId": null,
"customOverlayState": false,
"chapterState": true,
"canEmbed": true,
"canPreview": true,
"source": "",
"author": "",
"isLive": "False",
"visibilityOptionId": 1,
"visibilityOption": "Public",
"videoLockState": false,
"lockAfter": 0,
"password": "1234",
"passwordProtectedTitle": "",
"passwordProtectedDescription": "",
"tagNames": [],
"customParameters": [],
"flagIds": null,
"geoBlockingRule": null,
"customOverlays": [
{
"caption": "hello",
"secondsFrom": 1,
"secondsTo": 63,
"position": 2
}
],
"chapters": [
{
"title": "Introduction",
"time": 50
},
{
"title": "Chapter 2",
"time": 90
},
{
"title": "End",
"time": 150
}
]
},
"resultInfo": null,
"statusCode": 200
}

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
publicIdstringUnique identifier for the video
IdstringUnique identifier for the video
namestringName of the video
titlestringThe title of the video
descriptionstringDescription of the video
thumbnailUrlstringURL of the video's thumbnail image
filmstripUrlstringURL of the filmstrip image sequence
filmstripVttUrlstringURL of the WebVTT file for the filmstrip
publishDateDateDate and time when the video was published
publishEndDateDateDate and time when video will not be available
shareUrlStringA share URL redirects viewers to a custom destination when they share a video; if not provided, the player shares the video's embed location
liveCutStartDateDateStart date and time for a live cut
liveCutStartDateDateEnd date and time for a live cut
insertDateDateDate and time when the video was inserted
publishStatusIdinteger($int32)Id of the video's publish status
publishStatusNamestringThe name of the publish status
durationstringDuration of the video in seconds
userNamestringThe name of the user who uploaded the video
categoryIdinteger($int32)Id of the category
publicAdScheduleIdstringThe public Id of the ad schedule
restrictionIdinteger($int32)Id of the restriction
skipIntroStatebooleanThe state of the skip intro option
skipIntroFrominteger($int32)The start time in seconds for skipping the intro
skipIntroTointeger($int32)The end time in seconds for skipping the intro
geoBlockingRuleIdinteger($int32)The Id of the geo blocking rule
customOverlayStateboolIndicates whether custom overlays are enabled
chapterStateboolIndicates whether chapters are enabled
canEmbedboolIndicates whether the video can be embedded
canPreviewboolIndicates whether the video can be viewed
sourcestringThe source of the video
authorstringThe author of the video
isLivestringIndicates whether the video is live
visibilityOptionIdinteger($int32)The id of visibility option
visibilityOptionstringThe name of the visibility option
videoLockStateboolIndicates whether the video is locked
lockAfterinteger($int32)The number of seconds after which the video locks
passwordstringThe password for accessing the video
passwordProtectedTitlestringCustom player title for password protected videos
passwordProtectedDescriptionstringCustom player description for password protected videos
tagNamesarray[string]An array of video tags
customParametersarray[Object]An array of custom parameters
flagIdsarray[integer($int32)]An array of flag Ids
geoblockingRulestringThe geoblocking rule applied to the video
customOverlaysarray[Object]Return an array of custom overlays
captionstringThe text of the custom overlay
secondsFrominteger($int32)The start time in seconds
secondsTointeger($int32)The end time in seconds
positoninteger($int32)The the position of custom overlay
chaptersarray[Object]Returns an array of chapters
titlestringThe title of the chapter
timeinteger($int32)The end time for the specific chapter
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