Skip to main content

Update a section

PUT 

https://api.staging.powerapi.com/api/v2/catalog/sections/:section_id

Update a section by its id

Request

Path Parameters

    section_id stringrequired

    Possible values: >= 12 characters and <= 12 characters, Value must match regular expression ^[0-9a-z]+$

    Unique ID of the section

    Example: u7m4f8ep5nfi

Body

required

    name string

    Possible values: non-empty

    Name of the section

    order integer

    Default value: 0

    Used to order the item, order defaults to ascending.

    category_id string

    Category ID of the section

Responses

Schema

    id stringrequired

    Possible values: >= 12 characters and <= 12 characters, Value must match regular expression ^[0-9a-z]+$

    Unique ID of the section

    name stringrequired

    Possible values: non-empty

    Name of the section

    slug stringrequired

    Possible values: non-empty

    Slug of the section

    order integerrequired

    Default value: 0

    Used to order the item, order defaults to ascending.

    created_at date-timerequired
    updated_at date-timerequired
curl -L -X PUT 'https://api.staging.powerapi.com/api/v2/catalog/sections/:section_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"name": "Pizza",
"order": 1,
"category_id": "5m4v972ra9ue"
}'
Request Collapse all
Base URL
https://api.staging.powerapi.com
Auth
Parameters
— pathrequired
Body required
{
  "name": "Pizza",
  "order": 1,
  "category_id": "5m4v972ra9ue"
}
ResponseClear

Click the Send API Request button above and see the response here!