Update a category
Update category
Updating a single category is done by sending a PATCH
request to the /categories/:id
endpoint.
curl -X PATCH https://app.ignitevideo.cloud/api/categories/[CATEGORY_ID] \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"title": "New category title"}'
Response
The response is an object containing the category object and an update message text, or, if the category is not found, a 404 status code with a matching error message in the body is returned.
{
doc: {
"id": "[CATEGORY_ID]",
"title": "New category title",
...
},
message: "Updated successfully."
}