Replaces the CC list, the BCC list or the subject element of the page's email alert. Only the fields in the body are written, and each one replaces its stored value as a whole. An empty list clears cc or bcc. null or an empty string clears subject_element.
Duplicate addresses are stored once. subject_element must name an element of the page with a data type of 1 (Text), 7 (Select), 8 (Pick List), 9 (Multi Select), 19 (Text Area) or 25 (Unique ID). It is stored as the element's own name, whatever the letter case sent.
Authorization
Same as GET /profiles/{profile_id}/pages/{page_id}/email_alerts/settings.
Responses
-
OK - the settings were saved. The body is the updated settings, in the same shape as
GET. -
Bad Request - the body is not a JSON object,
ccorbccis not a list of valid email addresses or is longer than 1000 characters once joined with,, orsubject_elementdoes not name an element of the page that can be a subject. Nothing was written. -
Unauthorized - missing or invalid bearer token.
-
Forbidden - the user cannot assign the page.
-
Not Found -
page_iddoes not exist, is not a page ofprofile_id, or is a form shared from another profile.
curl \
--request PUT 'https://api.iformbuilder.com/exzact/api/v81/[servername]/profiles/self/pages/{page_id}/email_alerts/settings' \
--header "Content-Type: application/json" \
--header "Authorization: Bearer {access_token}" \
--data '{
"cc": [
"supervisor@iformbuilder.com"
],
"bcc": [
"audit@iformbuilder.com"
],
"subject_element": null
}'
{
"cc": [
"supervisor@iformbuilder.com"
],
"bcc": [
"audit@iformbuilder.com"
],
"subject_element": null
}
{
"cc": [
"supervisor@iformbuilder.com"
],
"bcc": [
"audit@iformbuilder.com"
],
"subject_element": null
}
{
"error_message": "cc must be a list of email addresses"
}
{
"error_message": "string"
}
{
"error_message": "The requested resource is not found"
}