Skip to main content

Update Images

POST Thumbnail

Overview

The following table contains important information about the POST method for uploading a video thumbnail.

MethodPOST
URL/api/projects/{projectId}/videos/thumbnail/{videoId}
HeadersAuthorization

Parameters

NameInDescriptionRequiredType
projectIdpathUnique ID of the projectYesstring
videoIdpathUnique ID of the videoYesstring
api-versionqueryAPI version (optional)Nostring

Request Body

The request body should be sent as multipart/form-data and contain the following fields.

Upload thumbnail

Field NameTypeDescription
FilebinaryThe thumbnail image file (binary)

Select thumbnail

Field NameTypeDescription
ThumbnailSecondnumberThe second at which the thumbnail should be taken (double)

Responses

HTTP Status CodeDescriptionContent TypeSchema
200Successtext/plain, application/json, text/jsonFileUploadResponseModel
401Unauthorized--
403Forbidden--
404Result Not Found--
500Internal Server Error--
503Backend Fetch Failed--

Security

The POST Thumbnail endpoint requires the following security mechanisms:

  1. OAuth2 with the scope vp_api
  2. API key with the value vp_api_key

FileUploadResponseModel

The FileUploadResponseModel represents the response model for a successful file upload. It has the following attributes:

Field NameTypeDescription
successbooleanIndicates if the upload was successful (true/false).
errorsarray of stringsAn array of error messages, if any.
messagesarray of stringsAn array of response messages from the backend.
resultobjectThe response object containing uploaded file information.
result.idinteger (int32)The ID of the uploaded file.
result.namestringThe name of the uploaded file.
result.flagTypeIdinteger (int32)The ID of the flag type.
result.flagTypeNamestringThe name of the flag type.
result.valuestringThe value of the flag.
result.activebooleanIndicates whether the flag is active.
result.descriptionstringThe description of the flag.
result.systemInfostringThe system information of the flag.
resultInfostringExtra information about the result.
statusCodeinteger (int32)The HTTP status code of the response.

Errors

The POST Thumbnail endpoint may return the following common HTTP status codes:

  • 400 Bad Request: The request is malformed or missing required data.
  • 401 Unauthorized: The request lacks proper authentication or authorization.
  • 403 Forbidden: The request is not permitted.
  • 404 Result Not Found: The requested resource was not found.
  • 500 Internal Server Error: An internal server error occurred.
  • 503 Backend Fetch Failed: There was an issue with the backend server.

This structured documentation provides clear information about the endpoint, its parameters, request body, responses, security requirements, and potential errors, following common documentation practices.