To work with Sentry settings, execute requests using the "sentry" API method (determine administrator token before executing the request):
Get Sentry settings:
curl -v '<IP address or DNS server name>/api/v2/sentry/' --header 'Content-Type: application/json' -H 'Authorization: Bearer <administrator token>'
The example of response:
{
"is_send_messages": true
}
Change Sentry settings:
curl -X PUT -v '<IP address or DNS server name>/api/v2/sentry/' --header 'Content-Type: application/json' -H 'Authorization: Bearer <administrator token>' -d '{"is_send_messages": <indicator of sending error messages (true/false)>}'
The example of response:
{
"is_send_messages": true
}
See also: