Show contents 

Development > Server API > Method for Working with Sentry Settings

Method for Working with Sentry Settings

To work with Sentry settings, execute requests using the "sentry" API method (determine administrator token before executing the request):

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
}

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:

Server API