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

Parameters: update_notification_email
NameTypeDescription
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
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"}'
Python
result = client.call("123formbuilder", "update_notification_email", {"form_id":5128403,"email_id":"default","send_to":["ops@yourcompany.com"],"subject":"New submission: Contact us"})
Node.js
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"});
CLI
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

JSON

{
  "form_id": 5128403,
  "email_id": "default",
  "name": "Default notification",
  "enabled": true,
  "send_to": [
    "ops@yourcompany.com"
  ],
  "subject": "New submission: Contact us"
}

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.