Update a video

PATCH /video-encoder/videos/{video}

Path parameters

  • video integer Required

    The video id

application/json

Body

  • state integer

    State of the video chat

    Values are 0, 1, 2, or 3.

Responses

  • 200 application/json

    Return the updated video

    Hide response attributes Show response attributes object
  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
  • Forbidden - You don't have permission to access this route

  • Not found - The video does not exist

  • 422 application/json

    Unprocessable Content

    Hide response attributes Show response attributes object
    • message string

      Error message.

    • errors object
      Hide errors attributes Show errors attributes object
      • field array[string]

        Error message details.

      • * array[string] Additional properties

        Error message details.

PATCH /video-encoder/videos/{video}
curl \
 -X PATCH https://domain.tld/api/v2/video-encoder/videos/{video} \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"state":0}'
Request examples
{
  "state": 0
}
Response examples (200)
{
  "id_video": 1,
  "date_insert": "2023-10-09T12:12:40.220000Z",
  "date_update": "2023-10-09T12:12:40.220000Z",
  "date_delete": "2023-10-09T12:12:40.220000Z",
  "id_blob": "f0dab429-ae29-4e26-b6ea-138d351831eb",
  "state": 0
}
Response examples (401)
{
  "message": "Unauthorized."
}
Response examples (422)
{
  "message": "field is required! (and 3 more error)",
  "errors": {
    "field": [
      "Error message details here"
    ],
    "additionalProperty1": [
      "Error message details here"
    ],
    "additionalProperty2": [
      "Error message details here"
    ]
  }
}