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
}Creates a new snippet category with the specified name and optional parent category. The category is automatically assigned a sort position at the end of its siblings. Categories can be nested to create hierarchical organization structures.Documentation Index
Fetch the complete documentation index at: https://developers.getfernand.com/llms.txt
Use this file to discover all available pages before exploring further.
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?