curl --request POST \
--url https://api.getfernand.com/snippets/categories \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Customer Support"
}
'{
"id": 5,
"name": "Customer Support",
"sort": 1,
"parent_id": 2
}curl --request POST \
--url https://api.getfernand.com/snippets/categories \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Customer Support"
}
'{
"id": 5,
"name": "Customer Support",
"sort": 1,
"parent_id": 2
}Category created successfully.
Unique identifier for the snippet category
5
Name of the category
250"Customer Support"
Sort order within the parent category (1-based)
1
ID of the parent category (null for root-level categories)
2
Was this page helpful?