Notifications
Update Notification Preferences
Enables or disables event-channel pairs. Only the pairs sent are changed; the response is the full matrix. Send {"action":"restore_defaults"} to reset all preferences to their defaults.
put/notifications/preferences
Request
- Base URLhttps://api-v2.pandavideo.com.br
- URLhttps://api-v2.pandavideo.com.br/notifications/preferences
- AuthAPI key in header Authorization
Request body
Example request
{
"preferences": [
{
"event_type": "VIDEO_READY",
"channel": "EMAIL",
"enabled": true
},
{
"event_type": "BILLING_FAILED",
"channel": "DASHBOARD",
"enabled": false
}
]
}Response
Updated preference matrix
Example response
{
"preferences": [
{
"event_type": "VIDEO_READY",
"category": "VIDEO",
"channel": "EMAIL",
"enabled": true,
"mandatory": false,
"available": true,
"default_enabled": false
},
{
"event_type": "BILLING_FAILED",
"category": "BILLING_ACCOUNT",
"channel": "DASHBOARD",
"enabled": false,
"mandatory": false,
"available": true,
"default_enabled": true
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.