Update notification recipients
Set who receives one notification email of a form.
PATCH https://cotlet.dev/api/v1/formstack/forms/{form_id}/notifications/{notification_id}/recipients
Replaces the recipients of a notification email with the list you pass, the same as editing the Notification Email section of the form's Settings > Emails & Redirects. Pass the full list, including recipients to keep. The response returns the old and the new list. It changes recipients only: send option, message and Email Logic stay as they are. The next submission goes to the new list. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| form_id string required | string | Form ID from list_forms. |
| notification_id string required | string | Notification email ID from get_notification_emails. |
| recipients string[] required | string[] | Email addresses that should receive it. |
Request
curl -X PATCH https://cotlet.dev/api/v1/formstack/forms/5128834/notifications/30912774/recipients \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"recipients":["dana@example.com","events@example.com"]}' result = client.call("formstack", "update_notification_recipients", {"form_id":"5128834","notification_id":"30912774","recipients":["dana@example.com","events@example.com"]}) const result = await cotlet.call('formstack', 'update_notification_recipients', {"form_id":"5128834","notification_id":"30912774","recipients":["dana@example.com","events@example.com"]}); cotlet call formstack update_notification_recipients --data '{"form_id":"5128834","notification_id":"30912774","recipients":["dana@example.com","events@example.com"]}' Example response
{
"form_id": "5128834",
"notification_id": "30912774",
"old_recipients": [
"sam@example.com",
"events@example.com"
],
"recipients": [
"dana@example.com",
"events@example.com"
]
}