v24

latestSwagger 2.0AGPL-3.0raw.githubusercontent.com2026-08-015163191.7 KB
Users

Update notification settings

Update the email notification settings for a user

put/users/{userID}/notifications

Path parameters

userIDstring required

ID of the user to update

Request body

heartbeat_enabledboolean required
message_status_enabledboolean required
newsletter_enabledboolean required
webhook_enabledboolean required

Example request

{
  "heartbeat_enabled": true,
  "message_status_enabled": true,
  "newsletter_enabled": true,
  "webhook_enabled": true
}

Response

OK

messagestring required
statusstring required

Example response

{
  "data": {
    "active_phone_id": "32343a19-da5e-4b1b-a767-3298a73703cb",
    "api_key": "x-api-key",
    "created_at": "2022-06-05T14:26:02.302718+03:00",
    "email": "name@email.com",
    "id": "WB7DRDWrJZRGbYrv2CKGkqbzvqdC",
    "notification_heartbeat_enabled": true,
    "notification_message_status_enabled": true,
    "notification_newsletter_enabled": true,
    "notification_webhook_enabled": true,
    "subscription_ends_at": "2022-06-05T14:26:02.302718+03:00",
    "subscription_id": "8f9c71b8-b84e-4417-8408-a62274f65a08",
    "subscription_renews_at": "2022-06-05T14:26:02.302718+03:00",
    "subscription_status": "on_trial",
    "timezone": "Europe/Helsinki",
    "updated_at": "2022-06-05T14:26:10.303278+03:00"
  },
  "message": "Request handled successfully",
  "status": "success"
}