Updates existing content. This endpoint requires admin authentication and accepts multipart/form-data for optional file updates.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/PhemiT/vaniykeempire-api/llms.txt
Use this file to discover all available pages before exploring further.
This endpoint requires admin authentication. Include a valid JWT token in the Authorization header:
Bearer <token>Path Parameters
The unique identifier of the content to update
Request Headers
Bearer token for admin authentication
Must be
multipart/form-dataRequest Body (multipart/form-data)
Content title
Content description
Content type. Must be one of:
pdf, video, audioCategory ID
Content price (minimum: 0)
Optional new content file to replace the existing one
Optional new thumbnail image to replace the existing one
Content status. Must be one of:
draft, publishedJSON stringified array of tags. Example:
["javascript", "advanced"]Response
Success message
Updated content object
Error Responses
404 Not Found
401 Unauthorized
Returned when authentication token is missing or invalid.403 Forbidden
Returned when the authenticated user is not an admin.500 Internal Server Error
You can update text fields without uploading new files. Only include file fields when you want to replace existing files.