Skip to main content
POST
/
v1
/
categories
Create category
curl --request POST \
  --url https://api.marblecms.com/v1/categories \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Technology",
  "slug": "technology",
  "description": "Tech news and tutorials"
}
'
{
  "category": {
    "id": "cryitfjp2345kl05weoybfk9",
    "name": "Technology",
    "slug": "technology",
    "description": "Tech news and tutorials"
  }
}

Authorizations

Authorization
string
header
required

Your Marble API key

Body

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

"Technology"

slug
string
required
Minimum string length: 1
Example:

"technology"

description
string
Example:

"Tech news and tutorials"

Response

Category created successfully

category
object
required