Video Plugin
Create video
POST
http://localhost:3000/api/plugins/videos
This API Endpoint allows uploading the video file along with related metadata.
Body
multipart/form-data
isActivebooleantrueisArchivedbooleanfalsearchivedAtstring<date-time>Example
2018-11-21T06:20:32.232ZtenantIdstringorganizationIdstringtitlestringrequiredThe title of the video
Example
My Project Demo Video 2024recordedAttimestamptzDate when the video was recorded
durationnumberrequiredDuration of the video in seconds
sizenumberrequiredSize of the video file in bytes
fullUrlstringrequiredFull URL to access the video
descriptionstringrequiredVideo description
storageProviderstringLOCALS3WASABICLOUDINARYDIGITALOCEANresolutionstringVideo resolution in format WIDTH:HEIGHT (e.g., 1920:1080, 3840:2160)
codecstringVideo codec used for encoding (e.g., libx264, libx265, vp9)
frameRatenumberrequiredVideo frame rate
timeSlotIdstringThe UUID of the associated TimeSlot
fileFileDTOrequiredThe uploaded video file object containing metadata and properties
Response
Video successfully.
400Bad Request
Invalid input provided. Check the response body for error details.