Video Plugin

Update a video by ID

PUT
http://localhost:3000/api/plugins/videos/{id}

Updates an existing video record based on the provided ID and metadata.

Body

application/json
isActivebooleantrue
isArchivedbooleanfalse
archivedAtstring<date-time>
Example
2018-11-21T06:20:32.232Z
tenantIdstring
organizationIdstring
titlestringrequired

Title of the video

recordedAttimestamptz

Date when the video was recorded

durationnumberrequired

Duration of the video in seconds

sizenumberrequired

Size of the video file in bytes

fullUrlstringrequired

Full URL to access the video

descriptionstringrequired

Video description

storageProviderstringLOCALS3WASABICLOUDINARYDIGITALOCEAN
resolutionstring

Video resolution in format WIDTH:HEIGHT (e.g., 1920:1080, 3840:2160)

codecstring

Video codec used for encoding (e.g., libx264, libx265, vp9)

frameRatenumberrequired

Video frame rate

timeSlotIdstring

The UUID of the associated TimeSlot

Parameters

idstringrequiredpath

Response

200OKVideo

The video has been successfully updated.

Response fields application/json
deletedAtstring<date-time>
Example
2018-11-21T06:20:32.232Z
createdAtstring<date-time>

The creation timestamp of the entity.

Example
2018-11-21T06:20:32.232Z
updatedAtstring<date-time>

The last update timestamp of the entity.

Example
2018-11-21T06:20:32.232Z
idstring
isActivebooleantrue
isArchivedbooleanfalse
archivedAtstring<date-time>
Example
2018-11-21T06:20:32.232Z
tenantIdstring
organizationIdstring
titlestringrequired

Title of the video

filestringrequired

Video file path or identifier

recordedAttimestamptz

Date when the video was recorded

durationnumberrequired

Duration of the video in seconds

sizenumberrequired

Size of the video file in bytes

fullUrlstringrequired

Full URL to access the video

descriptionstringrequired

Video description

storageProviderstringLOCALS3WASABICLOUDINARYDIGITALOCEAN
resolutionstring

Video resolution in format WIDTH:HEIGHT (e.g., 1920:1080, 3840:2160)

codecstring

Video codec used for encoding (e.g., libx264, libx265, vp9)

frameRatenumberrequired

Video frame rate

timeSlotIdstring

The UUID of the associated TimeSlot

400Bad Request

Invalid input, The response body may contain clues as to what went wrong.

404Not Found

Video record not found.

Copyright © 2023-Present Ever Co. LTD.Docs by Sourcey