Skip to main content
PATCH https://cms.thepublive.com/publisher/{publisher_id}/category/{id}/ Updates an existing category. Only send the fields you want to change (partial update).

Path Parameters

NameTypeDescription
idintegerCategory ID

Headers

NameTypeRequiredDescription
usernamestringYesAPI Key
passwordstringYesAPI Secret
Content-TypestringYesapplication/json

Request Body

Send only the fields you wish to update:
FieldTypeDescription
namestringCategory name
meta_titlestringSEO title
meta_descriptionstringSEO description
contentstringCategory description (HTML)
category_brand_colorstringBrand color (hex)
priorityintegerPriority level

Example Request

curl -X PATCH \
  'https://cms.thepublive.com/publisher/123/category/14428/' \
  -H 'username: YOUR_API_KEY' \
  -H 'password: YOUR_API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{"name": "Latest News", "meta_title": "Latest News Updates"}'
{
  "status": "success",
  "message": "Updated Successfully",
  "data": {
    "id": 14428,
    "name": "Latest News",
    "english_name": "News",
    "slug": "news",
    "absolute_url": "/news",
    "parent_category": null,
    "category_brand_color": "#EF4444",
    "content": "",
    "meta_title": "Latest News Updates",
    "meta_description": "",
    "content_type": null
  }
}