Update an existing category by ID or slug. Requires a private API key.
cURL
curl --request PATCH \ --url https://api.marblecms.com/v1/categories/{identifier} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Engineering", "slug": "engineering", "description": "Engineering articles and tutorials" } '
{ "category": { "id": "cryitfjp2345kl05weoybfk9", "name": "Technology", "slug": "technology", "description": "Tech news and tutorials" } }
Your Marble API key
Category ID or slug
"technology"
1
"Engineering"
"engineering"
"Engineering articles and tutorials"
Category updated successfully
Show child attributes
Was this page helpful?