Skip to content

Edit a Product Category

Request

The method allows you to edit the product category

Security
BearerPartnerUser
Path
location_idnumberrequired

Location ID

category_idnumberrequired

Product category ID

Headers
Acceptstringrequired

e.g. application/vnd.api.v2+json

Example:application/vnd.api.v2+json
Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token, User user_token

Bodyapplication/jsonrequired
titlestringrequired

Product category name

Example:"Manicure"
parent_category_idinteger, (int32)

Parent category ID (optional, but can be 0 or null if you don't need to specify the parent category)

Example:123456
articlestring

vendor code

Example:"123article"
commentstring

A comment

Example:"Category of products for manicure"
curl -i -X PUT \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/product_categories/{category_id}' \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "title": "Manicure",
    "parent_category_id": 123456,
    "article": "123article",
    "comment": "Category of products for manicure"
  }'

Responses

OK

Bodyapplication/json
successboolean

Execution success status

Example:true
dataobject

Object with data

Example:
{ "id": 123456, "title": "Manicure", "parent_category_id": 123457 }
metaArray of objects

Metadata (empty array)

Example:
[]
Response
{ "success": true, "data": { "id": 123456, "title": "Manicure", "parent_category_id": 123457 }, "meta": [] }