Create Product-Template Relationships
POST
Create Product-Template Relationships
https://api.moltin.com/pcm/products/:productId/relationships/templates
curl -X POST https://api.moltin.com/pcm/products/14e055d0-eebb-4090-8594-a0a7aeea2151/relationships/templates \
-H "Authorization: Bearer XXXX" \
-H "Content-Type: application/json" \
-d $'{
"data": [
{
"type": "template",
"id": "string"
}
]
}'
Path Parameters:
Name | Required | Type | Description |
---|---|---|---|
productId | Required | string | The unique identifier of the product. |
Headers:
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token to grant access to the API. |
Body:
Name | Required | Type | Description |
---|---|---|---|
type | Required | string | Always: template |
id | Required | string | The unique identifier of a flow. |
This request creates relationships between the specified product and the templates.
201 Created