Skip to main content
PATCH
/
v1
/
categories
/
{identifier}
Update category
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"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.marblecms.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Your Marble API key

Path Parameters

identifier
string
required

Category ID or slug

Example:

"technology"

Body

application/json
name
string
Minimum string length: 1
Example:

"Engineering"

slug
string
Minimum string length: 1
Example:

"engineering"

description
string | null
Example:

"Engineering articles and tutorials"

Response

Category updated successfully

category
object
required