PATCH
Update Video
Videos
3 min read
Update video properties such as title, description, or configuration.
PATCH
https://api.videopilot.app/api/videos/{id}
This endpoint requires authentication. Include your API key in the Authorization header.
Parameters
The following parameters are supported for this endpoint:
Name | Type | Required | Default | Description |
---|---|---|---|---|
id path | string | Required | - | The unique identifier of the video Example: "video_123abc" |
title | string | Optional | - | New video title Example: "Updated Space Adventure" |
description | string | Optional | - | New video description Example: "An updated sci-fi adventure" |
style | string enum | Optional | - | New visual style Example: "fantasy" Options:cinematiccartoonrealisticfantasyanimeoil-paintingwatercolor |
Code Examples
Example requests in multiple programming languages:
curl -X PATCH https://api.videopilot.app/api/videos/video_123abc \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Updated Epic Space Adventure",
"description": "An enhanced sci-fi story with more dramatic tension",
"style": "fantasy"
}'
Responses
Possible responses from this endpoint:
200
Video updated successfully
400
Invalid update data
401
Authentication required
404
Video not found
Try It Out
Test this endpoint directly from your browser:
Your API key is only used for this session and never stored or logged.
PATCH
/api/videos/{id}
Generated cURL Command
Copy this command to use in your terminal
"text-blue-400 font-semibold">curl -X PATCH https://api.videopilot.app/api/videos/{id} \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
Response
Make a request to see the response here