Parent Relationships
Create Parent Category Relationship
POST
https://api.moltin.com/v2/categories/:id/relationships/parent
Create a relationship to a parent Category. If a relationship already exists, the one from the request will overwrite it.
Path Parameters
Name | Type | Description |
---|---|---|
id | 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 |
id | string | The ID of the parent category |
Update Parent Category Relationship
PUT
https://api.moltin.com/v2/categories/:id/relationships/parent
Change the parent of a Category.
Path Parameters
Name | Type | Description |
---|---|---|
id | 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 |
id | string | The ID of the parent category |
Delete Parent Category Relationship
DELETE
https://api.moltin.com/v2/categories/:id/relationships/parent
Path Parameters
Name | Type | Description |
---|---|---|
id | string | The ID of the parent category you with to delete the relationship to |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The Bearer token used to access the API |
Last updated