Referencia APIv1Categories
Create a category
X-API-Key<token>
Per-store API key created in the dashboard at Settings > Developer > API Keys.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://api.whatalo.com/v1/categories" \ -H "Content-Type: application/json" \ -d '{ "name": "Electronics" }'{
"data": {
"id": "104728193650",
"name": "Electronics",
"slug": "electronics",
"is_active": true,
"created_at": "string"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request body",
"details": [
{
"field": "string",
"message": "string"
}
]
}
}