/video/playlists/{playlist_id}/reorderReorder videos in a playlist
Reorders videos in a playlist by moving an asset to a specified position or sorting the playlist by title or creation date. Choose one of the two request formats: asset positioning with page details, or sorting with a field and direction.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
The ID of the playlist to reorder.
Provide either the asset-positioning fields or the sorting fields.
Asset id to move.
Zero-based position inside the provided page.
Current playlist page number.
Playlist page size used by the caller.
One documented failure
invalid_parameter_valueThe parameter value is invalid.
One documented failure
invalid_api_keyAPI key supplied with request is invalid
One documented failure
unauthorizedYou don't have access to this feature. Please contact your organization owner.
One documented failure
playlist_not_foundNo playlist with provided id exists.
A 400 is returned for a bad request. A 401 is returned when the request has a missing or invalid API key or bearer token. A 403 is returned for an unpaid account or insufficient role permissions. A 404 is returned when the playlist is not found. For asset positioning, asset_id, page_number, page_size, and asset_position are required; page number and page size must be at least 1, page size must not exceed 200, and asset position must be at least 0. For sorting, sort_by must be title or created_at, and sort_order must be asc or desc.