PATCH
/hyax-api/v1/post-categories/:idUpdate post category
Send only the fields to change. Setting `urlSlug` moves every post in the category to `/{urlSlug}/{postSlug}`; `null` or an empty string moves them back under the usual post prefix. Renaming a category never changes its `urlSlug`. When a post is in several categories, the first one with a `urlSlug` decides its address.
Base URL: https://platform.hyax.com · Replace YOUR_API_KEY with your team API key.
Request body
| Field | Required | Description |
|---|---|---|
name | No | |
description | No | `null` clears it |
urlSlug | No | `null` or `""` removes it |
Request
curl -X PATCH 'https://platform.hyax.com/hyax-api/v1/post-categories/clx_example_id' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"urlSlug": "gaming"
}'Response
{
"success": true,
"data": { "id": "clx…", "name": "Gaming", "slug": "gaming", "urlSlug": "gaming" }
}