Gamma API

Revoke a worker credential

DELETE
/api/organizations/{slug}/workers/{id}

Its next claim is refused, and the jobs it is running lose their lease. 404 when it is revoked already.

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.

id*string

Response Body

Done; no content.

Example Request
curl -X DELETE 'http://localhost:3000/api/organizations/string/workers/string'
Example Response
Empty