Skip to content
Guides
CatalogCategories
catalog:update

Update categories tree

Reorders categories and changes their parent relationships in one request; cyclic hierarchies are rejected.

PUT/v1/catalog/categories/tree

Reorders categories and changes their parent relationships in one request; cyclic hierarchies are rejected.

Authorization

bearerAuth
AuthorizationBearer <token>

OAuth2 access token issued by Ecomiq Auth.

In: header

Header Parameters

x-Store-Id?string

Store the request acts on. Not needed when the token is bound to a store.

Authorization*string

OAuth 2.0 bearer token.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://example.com/v1/catalog/categories/tree" \  -H "x-Store-Id: <store-id>" \  -H "Authorization: Bearer <token>" \  -H "Content-Type: application/json" \  -d '{    "categories": [      {        "id": "7204558912004325301",        "parentId": "7204558912004325301",        "order": 1,        "children": []      }    ]  }'
false