POST
/hyax-api/v1/post-categoriesCreate post category
Names are unique per team; a duplicate returns `409`.
Base URL: https://platform.hyax.com · Replace YOUR_API_KEY with your team API key.
Request body
| Field | Required | Description |
|---|---|---|
name | Required | |
description | No | |
urlSlug | No | One lowercase URL segment (letters, numbers, hyphens). Posts in the category then live at `/{urlSlug}/{postSlug}`. Leave out to keep them under the usual post prefix. |
Request
curl -X POST 'https://platform.hyax.com/hyax-api/v1/post-categories' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"name": "Gaming",
"urlSlug": "gaming"
}'Response
{
"success": true,
"data": { "id": "clx…", "name": "Gaming", "slug": "gaming", "urlSlug": "gaming" }
}