Create Category
POST https://api.salla.dev/admin/v2/categories
This endpoint allows you to create a new category and return the category id and its details.
Request Body
{"name"=>"<string>", "parent_id"=>"<number>", "sort_order"=>"<number>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"status":"\u003cnumber\u003e","success":"\u003cboolean\u003e","data":{"id":"\u003cnumber\u003e","name":"\u003cstring\u003e","urls":{"customer":"\u003cstring\u003e","admin":"\u003cstring\u003e"},"items":[{"value":"\u003cCircular reference to #/components/schemas/Category detected\u003e"}],"parent_id":"\u003cinteger\u003e","status":"hidden","sort_order":"\u003cinteger\u003e"}}