Snapvisor Docs

Turn notification categories on or off

Turn notification categories (review, build_review, billing, project, integration, product_prompts) on or off on a channel (email, in_app, push). Each category is delivered on only some channels: get_profile lists the valid pairs, and lists push only once the user has registered the Snapvisor iOS app. Only the pairs you send change. Use it when the user wants fewer or more notification emails or app pushes.

PUT
/me/notification-preferences

Turn notification categories (review, build_review, billing, project, integration, product_prompts) on or off on a channel (email, in_app, push). Each category is delivered on only some channels: get_profile lists the valid pairs, and lists push only once the user has registered the Snapvisor iOS app. Only the pairs you send change. Use it when the user wants fewer or more notification emails or app pushes.

Authorization

AuthorizationBearer <token>

Authenticate as a user with a personal access token.

Send it as a bearer token in the Authorization header:

Authorization: Bearer <personal-access-token>

Personal access tokens act on behalf of the user that created them and are required by endpoints that perform user actions, such as reviewing builds and posting comments.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/me/notification-preferences" \  -H "Content-Type: application/json" \  -d '{    "preferences": [      {        "category": "string",        "channel": "email",        "enabled": true      }    ]  }'
[  {    "category": "string",    "channel": "email",    "label": "string",    "description": "string",    "enabled": true  }]