Gamma API

Update the SSO policy

PATCH
/api/organizations/{slug}/security/sso

required: true requires the domain of the caller's own SSO sign-in: members at that domain then open the organization only through its SSO. Refused (403) without an SSO sign-in. required: false lifts the domain of the caller's SSO sign-in, and every domain the caller's address is not at.

Who may call it: An owner or security admin of the organization. API keys: no.

Authorization

session
cookiegamma.session_token<token>

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

Path Parameters

slug*string

The organization's slug, as in its URL.

Request Body

application/json
  1. body
required*boolean

Response Body

OK.

application/json
  1. response
requireSsoDomains*array<string>

The email domains whose members must sign in through their company's SSO to reach the organization and its projects; empty for none.

Example Request
curl -X PATCH 'http://localhost:3000/api/organizations/string/security/sso' \  -H 'Content-Type: application/json' \  -d '{  "required": true}'
Example Response
{  "requireSsoDomains": [    "string"  ]}