Update notification email
Change Send to and the subject of one email a form sends.
PATCH https://cotlet.dev/api/v1/123formbuilder/forms/{form_id}/notification-email
write Confirm
Edits one email in the Emails section. send_to replaces the typed addresses; the account email, email fields of the form and Add rules conditions stay as they are. The body and sender are not touched. From the next submission on, the new recipients get the email. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| form_id integer required | integer | Form id from list_forms. |
| email_id string required | string | Email id from list_notification_emails. |
| send_to array | array | Email addresses that replace the typed ones in Send to. |
| subject string | string | New subject. Field variables are allowed. |
Request
curl -X PATCH https://cotlet.dev/api/v1/123formbuilder/forms/5128403/notification-email \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email_id":"default","send_to":["ops@yourcompany.com"],"subject":"New submission: Contact us"}' result = client.call("123formbuilder", "update_notification_email", {"form_id":5128403,"email_id":"default","send_to":["ops@yourcompany.com"],"subject":"New submission: Contact us"}) const result = await cotlet.call('123formbuilder', 'update_notification_email', {"form_id":5128403,"email_id":"default","send_to":["ops@yourcompany.com"],"subject":"New submission: Contact us"}); cotlet call 123formbuilder update_notification_email --data '{"form_id":5128403,"email_id":"default","send_to":["ops@yourcompany.com"],"subject":"New submission: Contact us"}' Example response
{
"form_id": 5128403,
"email_id": "default",
"name": "Default notification",
"enabled": true,
"send_to": [
"ops@yourcompany.com"
],
"subject": "New submission: Contact us"
}