Sign in

Create Category

POST https://{organization}.myguper.com/api/catalog/category

Creates a new category under the current organization. Categories form a tree: pass parent (the id of the parent category) to nest the new entry; omit it to create a root-level category.

Try-it values populated from environment ACME (Demo)


Authentication

Token

Send your user token in the x-guper-authorization header.

Headers

Name Type Description
x-guper-authorization * string User token issued by Guper.
Content-Type * string Always `application/json` for endpoints that accept a JSON body.

Request body

Content-Type: application/json

{
    "name": "Polos",
    "parent": 133                                               // optional
}

Responses

{
    "name": "Shirts",
    "organization": "acme",
    "id": 133,
    "dateTime": "2024-08-23T20:27:39-03:00"
}
Copied to clipboard