Docs
Sign in

Store or replace the legacy GitHub token.

The versioned twin of PUT /api/settings/github-token.

PUT/api/v1/github/legacy-token

Scopeconfig

Write-only: GitHub is asked about the token first, and one it refuses is not stored (400 token_refused). Once the workspace has moved to the App (an active installation covered every project repository when the legacy token was removed) it answers 410 github_app_required. The timeline records the key ID, action and outcome.

Headers.

Idempotency-Keystring

Retry the same request with the same key. Retry rules.

Body.

valuestringrequired

A GitHub token crews push with until the workspace moves to the GitHub App. GitHub is asked about it first; one it refuses is not stored. Encrypted at rest and never returned. 1 to 512 characters.

Response.

200 OK · JSON object

422 validation_failed
Each schema error appears in details.