EntityNotification Policy

Update

POST
https://api.mercoa.com/entity/:entityId/notification-policy/:notificationType

Update notification policy associated with this entity

Path parameters

entityId
string
notificationType
enum

Request

This endpoint expects an object.
additionalRoles
list of strings

List of user roles that should receive notifications in addition to the default users for this notification type

disabled
optional boolean

Set to true if the selected notification type should be disabled for this entity

Response

This endpoint return 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
/entity/:entityId/notification-policy/:notificationType
curl -X POST https://api.mercoa.com/entity/:entityId/notification-policy/INVOICE_APPROVAL_NEEDED \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"additionalRoles": [
"string"
]
}'
Response
{
"disabled": true,
"additionalRoles": [
"string"
],
"type": "INVOICE_APPROVAL_NEEDED"
}