Add workflow recipients¶
| Method | Path |
|---|---|
| PUT | /api/v1/workspaces/{workspaceId}/workflows/{workflowId}/roles |
Warning
Add workflow recipients using /api/v1/workflows/{id}/roles is deprecated.
You need to pass the workspace id on the path.
Parameters¶
recipientsarray | required
The list of recipients for your workflow. It must contain at least one item.
recipients[0].idstring | optional
The optional recipient id to use in updating context.
recipients[0].namestring | required
The recipient name.
recipients[0].emailstring | required
The recipient email address.
recipients[0].rolesarray | required
An array of roles for your recipient.
recipients[0].roles[0].typeenum | required
| Value | Description |
|---|---|
| sign | A recipient must sign the document |
| review | A recipient must review the document |
recipients[0].roles[0].colorstring | required
A hexadecimal color representing your recipient role.
Example¶
curl --request PUT 'https://app.yumisign.com/api/v1/workspaces/1/workflows/1/roles' \
--header 'Content-Type: application/json' \
--data-raw '{
"recipients": [
{
"id": 1,
"name": "Recipient name",
"email": "recipient@email.com",
"roles": [
{
"id":1,
"type": "sign",
"color": "#EE8320"
}
]
}
]
}'
[
{
"id": 1,
"name": "Recipient name",
"email": "recipient@email.com",
"roles": [
{
"id": 1,
"type": "sign",
"color": "#EE8320"
}
]
}
]