# User Settings

## Enable or disable bucket monitoring for a user

> Updates the user's preference for bucket monitoring. \
> Requires authentication. The \`userId\` is extracted from the JWT.<br>

```json
{"openapi":"3.0.0","info":{"title":"JSMON API","version":"1.0.0"},"servers":[{"url":"https://api-dev.jsmon.sh","description":"Development Server (For internal testing)"},{"url":"https://api.jsmon.sh","description":"Production Server (Stable release)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{}},"paths":{"/api/v2/bucketMonitoring":{"post":{"summary":"Enable or disable bucket monitoring for a user","description":"Updates the user's preference for bucket monitoring. \nRequires authentication. The `userId` is extracted from the JWT.\n","tags":["User Settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["bucketMonitoring"],"properties":{"bucketMonitoring":{"type":"boolean","description":"Whether bucket monitoring should be enabled (`true`) or disabled (`false`)."}}}}}},"responses":{"200":{"description":"Successfully updated bucket monitoring preference","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"401":{"description":"Unauthorized (missing or invalid token)"},"500":{"description":"Internal Server Error"}}}}}}
```
