Service Accounts

Delete a service account Git credential

Changed on

Deletes a service account's stored token for one Git provider. Idempotent, and allowed on any plan so a stored token can always be removed. Computers that already copied the token keep it until they are reprovisioned, so also revoke the token at the provider. Requires permission to change this service account. Service account credentials are rejected. Not available on self-hosted deployments.

delete/api/v0/service-accounts/{serviceAccountId}/git-credentials/{integration}

Request

  • Base URL
    https://api.factory.ai
  • Auth
    HTTP bearer

Path parameters

serviceAccountId, string required

Service account ID

integration, string required

Git provider whose credential to delete, as in gitCredentials[].integration. A value that names no supported provider answers 404.

Headers

X-Factory-Org-Id, string

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Response

Response for status 200

DeleteServiceAccountGitCredential200ResponseBody required
integration, string required

Git provider whose credential was removed.

deleted, boolean required

Always true.

Changes