Gamma API

Update the security policy

PATCH
/api/organizations/{slug}/security

Requiring two-factor authentication shuts members without it out of the organization until they turn it on.

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 __Secure- 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
requireTwoFactor*boolean

Response Body

OK.

application/json
  1. response
requireTwoFactor*boolean

Members must have two-factor authentication on to reach the organization and its projects.

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