Sign in

Update Category

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

Updates an existing category. The id goes in the URL; the body carries the fields to change. Both name and parent are editable — pass parent to move the category in the tree, or send null to detach it back to root level.

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.

Path parameters

Name Type Description
id * integer Category id to update.

Request body

Content-Type: application/json

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

Responses

{
    "name": "Polos",
    "parent": 133,
    "id": 139,
    "organization": "acme",
    "dateTime": "2024-08-23T20:41:20-03:00"
}
Copied to clipboard