POST
/categories
curl \
--request POST 'https://app.getfoundation.com/api/external/v1/categories' \
--header "X-API-Key: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"category":{"title":"Toys","parent_id":"string","handle":"toys"}}'
Request examples
{
"category": {
"title": "Toys",
"parent_id": "string",
"handle": "toys"
}
}
Response examples (201)
{
"id": "9aa62446-c3b0-42f5-8027-3648daed9d73",
"title": "Toys",
"parent_id": "string",
"handle": "toys"
}
Response examples (401)
{
"error": "string",
"details": "string"
}
Response examples (404)
{
"error": "string",
"details": "string"
}
Response examples (422)
{
"error": "string",
"details": "string"
}