Gamma API

Update my notification preferences

PUT
/api/account/notifications

Changes only the fields sent. An empty string or null clears timeZone and securityCode.

Who may call it: Any signed-in user, for their own account. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Request Body

application/json
  1. body
timeZone?string|null
marketingEmails?boolean
securityCode?string|null

Response Body

OK.

application/json
  1. response
timeZone*|

The IANA time zone digests are scheduled in; null falls back to the project's.

marketingEmails*boolean

Consent to marketing email. Stored only; none is sent yet.

securityCode*|

A phrase of the user's own, printed in every email sent to them, so a message without it is recognisably not from us. Null for none.

Example Request
curl -X PUT 'http://localhost:3000/api/account/notifications' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "timeZone": "string",  "marketingEmails": true,  "securityCode": "string"}