curl --request PATCH \
--url https://api.getfernand.com/snippets/categories/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Updated Support"
}
'{
"id": 5,
"name": "Customer Support",
"sort": 1,
"parent_id": 2
}curl --request PATCH \
--url https://api.getfernand.com/snippets/categories/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Updated Support"
}
'{
"id": 5,
"name": "Customer Support",
"sort": 1,
"parent_id": 2
}Updates the name of an existing snippet category. The parent relationship and sort position are managed through the separate position endpoint.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.
ID of the category to update.
New name for the category (optional).
50"Updated Support"
Category updated 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?