Create a notification definition under a particular Communication Profile
Learn how to create a notification definition under a particular communication profile by the Settings API.
To create a notification definition under a particular communication profile, see the following sample request body and 200 response body.
HTTP request:
POST https://rest.zuora.com/settings/communication-profiles/{id}/notifications
The path parameter id is the ID of the communication profile to which the notification definition belongs. You can get the ID through Get all communication profiles.
Request body:
The following fields are required in the request body:
-
profileId: the ID of the communication profile to which the notification definition belongs. It must be the same as the path parameteridin the preceding HTTP request. -
eventId: the ID of the event to which the notification definition is related.- For standard events, it is a 32-character identifier.
- For custom events, the format is
user.notification:<custom_event_name>. For example,user.notification:InvoiceUpdated.
-
name: the name of the notification definition.
Response body: