curl --request PATCH \
--url https://api.getfernand.com/snippets/categories/{id}/position \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"position": 2
}'{
"id": 5,
"name": "Customer Support",
"sort": 1,
"parent_id": 2
}curl --request PATCH \
--url https://api.getfernand.com/snippets/categories/{id}/position \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"position": 2
}'{
"id": 5,
"name": "Customer Support",
"sort": 1,
"parent_id": 2
}ID of the category to reposition.
Category position 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?