Gamma API

Get project notification settings

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

How often the project's members hear about each type, unless they set their own, and when digests go out.

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.

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 GET 'http://localhost:3000/api/projects/string/notification-settings'
Example Response
{  "types": [    {      "type": "issue.assigned",      "group": "string",      "label": "string",      "description": "string",      "frequency": "instant"    }  ],  "hour": 0,  "weekday": 0,  "timeZone": "string"}