Create an Entry Relationship
POST
Create an Entry Relationship
https://api.moltin.com/v2/flows/:flowSlug/entries/:entryId/relationships/:fieldSlug
Create an Entry relationship to one or more resources. If any relationships already exist, the ones made in the request are added to them.
Path Parameters:
Name | Required | Type | Description |
---|---|---|---|
fieldSlug | Required | string | The slug of the entry this field belongs to. |
entryId | Required | string | The ID of the entry this field belongs to. |
flowSlug | Required | string | The slug of the flow the entry belongs to. |
Headers:
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token used to access the API. |
Body:
Name | Required | Type | Description |
---|---|---|---|
data.id | Optional | string | The ID of the related resource. |
data.type | Optional | string | Represents the resource type of the object. |
data | Optional | object | Data to be stored. |
201 Created
{
"data": [
{
"type": "brand",
"id": "0d28e5b6-f615-4e1c-b038-275cfde97927"
}
]
}