Update a product category

PATCH /productcategories/{id}

Update details of a specific product category identified by its unique ID, and receive the updated details in return.

Headers

Path parameters

  • id integer(int32) Required

    A unique identifier for the product category within 24SevenOffice ERP modules.

    Minimum value is 1.

application/json

Body

Request body for updating a product category

  • An alternative user-defined reference for the category.

  • name string

    The name of the category.

  • parentId number

    A reference to the ID of the parent category.

    Default value is 0.

Responses

PATCH /productcategories/{id}
curl \
 -X PATCH https://rest.api.24sevenoffice.com/v1/productcategories/12 \
 -H "Content-Type: application/json" \
 -H "Authorization: string" \
 -d '{"alternativeReference":"dk-45-34","name":"Shoe accessories","parentId":0}'
Request examples
# Headers
Authorization: string

# Payload
{
  "alternativeReference": "dk-45-34",
  "name": "Shoe accessories",
  "parentId": 0
}
Response examples (200)
# Headers
Access-Control-Allow-Origin: string
Access-Control-Allow-Credentials: string
X-Trace-Id: string

# Payload
{
  "id": 12,
  "alternativeReference": "dk-45-34",
  "name": "Shoe accessories",
  "parentId": 0,
  "modifiedAt": "2023-12-31 18:00:00.000Z"
}