Copyright (C) 2025 Lucentinian Works Co Ltd
This endpoint allows a logged-in user to update the title and/or description of a video that is currently in draft status.
PATCH /me/videos/{id}
id (integer, required): The ID of the video to update.Provide at least one of the following fields:
title (string, optional): The new title for the video.description (string, optional): The new description for the video.curl -X PATCH \
http://localhost:8080/me/videos/123 \
-H 'Authorization: Bearer YOUR_JWT_TOKEN' \
-H 'Content-Type: application/json' \
-d '{ "title": "My Updated Video Title", "description": "A new and improved description for my draft video." }'
{
"message": "Video details updated successfully."
}
{
"error": "No title or description provided for update."
}
{
"error": "Unauthorized: Missing or invalid token."
}
{
"error": "Video not found, not owned by user, or not in draft status."
}
{
"error": "Failed to update video details."
}