EntityNotification Policy

Update

POST
Update notification policy associated with this entity

Path parameters

entityIdstringRequired
notificationTypeenumRequired

Request

This endpoint expects an object.
additionalRoles
list of stringsRequired
List of user roles that should receive notifications in addition to the default users for this notification type
disabled
booleanOptional
Set to true if the selected notification type should be disabled for this entity

Response

This endpoint returns an object
disabled
boolean
True if the selected notification type is disabled for this entity
additionalRoles
list of strings
List of user roles that should receive notifications in addition to the default users for this notification type
type
enum
POST
1curl -X POST https://api.mercoa.com/entity/:entityId/notification-policy/INVOICE_APPROVAL_NEEDED \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "additionalRoles": [
6 "string"
7 ]
8}'
200
Successful
1{
2 "disabled": true,
3 "additionalRoles": [
4 "string"
5 ],
6 "type": "INVOICE_APPROVAL_NEEDED"
7}