Gamma API

Update project notification settings

PUT
/api/projects/{projectId}/notification-settings

Absent fields are left alone. Digests already queued move to the new schedule.

Who may call it: Whoever manages the project: an owner, security admin or admin of its organization, or an admin of the project. 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.

Path Parameters

projectId*string

The project's id.

Request Body

application/json
  1. body
frequencies?

By notification type; the types left out keep theirs.

hour?integer

The hour digests go out, local to timeZone.

Range0 <= value <= 23
weekday?integer

The day weekly digests go out; 0 is Sunday.

Range0 <= value <= 6
timeZone?string

An IANA zone.

Response Body

OK.

application/json
  1. response
types*array<>

Every type a member can hear about, in the page's order.

hour*integer

The hour digests go out, local to timeZone.

Range0 <= value <= 23
weekday*integer

The day weekly digests go out; 0 is Sunday.

Range0 <= value <= 6
timeZone*string

IANA zone, for members who have not set their own. UTC by default.

Example Request
curl -X PUT 'http://localhost:3000/api/projects/string/notification-settings' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "types": [    {      "type": "issue.assigned",      "group": "string",      "label": "string",      "description": "string",      "frequency": "instant"    }  ],  "hour": 0,  "weekday": 0,  "timeZone": "string"}