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

write Confirm

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

Parameters: update_notification_recipients
NameTypeDescription
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
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"]}'
Python
result = client.call("formstack", "update_notification_recipients", {"form_id":"5128834","notification_id":"30912774","recipients":["dana@example.com","events@example.com"]})
Node.js
const result = await cotlet.call('formstack', 'update_notification_recipients', {"form_id":"5128834","notification_id":"30912774","recipients":["dana@example.com","events@example.com"]});
CLI
cotlet call formstack update_notification_recipients --data '{"form_id":"5128834","notification_id":"30912774","recipients":["dana@example.com","events@example.com"]}'

Example response

JSON

{
  "form_id": "5128834",
  "notification_id": "30912774",
  "old_recipients": [
    "sam@example.com",
    "events@example.com"
  ],
  "recipients": [
    "dana@example.com",
    "events@example.com"
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.