Link an email to a workflow
Changed onLink a Design Studio email to a workflow: a transactional message, a one-time send, an automation, or an API-triggered broadcast. After you link an email, publish it to push the content live.
You can only link an email to one workflow or action at a time. If the workflow or action is already linked to a different Design Studio email, the request fails with a 409 unless you pass "force": true, which replaces (and unlinks) the other email.
Request
- Base URLhttps://api.customer.io
- URLhttps://api.customer.io/v1/design_studio/emails/{id}/link
- AuthHTTP bearer
Path parameters
The id of the email. If your email has multiple languages, you must provide the ID of the default language template. This links the workflow to all of the language variants for the template.
Request body
Example request
{
"target": {
"type": "campaign_action",
"action_id": 42
},
"force": false
}Response
Email linked
Example response
{
"node_id": "123e4567-e89b-12d3-a456-426614174000",
"template_id": 987654,
"target": {
"type": "campaign_action",
"action_id": 42
}
}Changes
- info
the endpoint scheme security
Bearer-Authwas added to the API - info
api tag
Email link and publishadded - info
api tag
Design Studio emailsremoved
- info
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info