Child Relationships
Create Child Category Relationships
POST
https://api.moltin.com/v2/categories/:categoryId/relationships/children
Create a relationship to a parent Category. If any relationship(s) already exists, new ones will be added.
Path Parameters
Name | Type | Description |
---|---|---|
categoryId | string | The ID of the category you wish to make relationships to |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The Bearer token used to access the API |
Request Body
Name | Type | Description |
---|---|---|
type | string | The type of related object (should be be |
id | string | The ID of the parent category |
Update Child Category Relationship
PUT
https://api.moltin.com/v2/categories/:categoryId/relationships/children
Path Parameters
Name | Type | Description |
---|---|---|
categoryId | string | The ID of the category you wish to make relationships to |
Request Body
Name | Type | Description |
---|---|---|
type | string | The type of related object (should be |
id | string | The ID of the parent category |
Delete Child Category Relationship
DELETE
https://api.moltin.com/v2/categories/:categoryId/relationships/parent
Path Parameters
Name | Type | Description |
---|---|---|
categoryId | string | The ID of the category you wish to update relationships to. |
Request Body
Name | Type | Description |
---|---|---|
data | object | |
data[].type | string | The type of related object. (should be |
data[].id | string | The ID of the child category |
Last updated