Gamma API

Run jobs only on the organization's workers

PATCH
/api/organizations/{slug}/workers

On, the platform's workers never take one of the organization's jobs, whatever credentials it has or revokes: they wait for its own. Off, its workers and the platform's share them. Jobs the server runs itself, such as exports, are not affected. Every owner and security admin is told of a change, in the app and by email.

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
ownWorkersOnly*boolean

The organization's jobs run only on its own workers: the platform's never take one, even while none of its own is running. Off, its workers and the platform's share them.

Response Body

OK.

application/json
  1. response
ownWorkersOnly*boolean

The organization's jobs run only on its own workers: the platform's never take one, even while none of its own is running. Off, its workers and the platform's share them.

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