User Settings

Enable or disable bucket monitoring for a user

post
/api/v2/bucketMonitoring

Updates the user's preference for bucket monitoring. Requires authentication. The userId is extracted from the JWT.

Authorizations
Body
bucketMonitoringbooleanRequired

Whether bucket monitoring should be enabled (true) or disabled (false).

Responses
200

Successfully updated bucket monitoring preference

application/json
post
/api/v2/bucketMonitoring
POST /api/v2/bucketMonitoring HTTP/1.1
Host: api-dev.jsmon.sh
Content-Type: application/json
Accept: */*
Content-Length: 25

{
  "bucketMonitoring": true
}
{
  "message": "Bucket monitoring set to true"
}