_setNotificationEmail
Sets the Email for Notifications of an Appointment Type.
Parameters
id
The ID of the Appointment Type.
val
A string with the Email that Notifications related to this Appointment Type will be sent to, must be in a valid email address format. (e.g [email protected], [email protected], [email protected])
Example
FM_api(
'AppointmentType_setNotificationEmail',[
'id' => '152047',
'val' => '[email protected]'
]
);
On Success
{"ok":1}
On Failure
If there's no chosen ID or the chosen ID is less than 1
{"error":"missing or invalid parameter: id"}
If the "val" parameter is not set:
{"error":"missing parameter: val"}
If the "val" parameter does not have a valid email format:
{"error":"invalid parameter: val"}
If the "id" parameter does not match the ID of an existing Appointment Type:
{"error":"job type does not exist"}
Last updated