ReferenceHTTP APIWorkspace settings

Remove the GitHub Packages bot token (owner or admin)

DELETE
/v1/workspaces/{id}/github-packages/token

Drops the stored token; from the next request on, the proxy refuses every GitHub Packages request. The allowlist stays. Writes a delete_github_packages_token receipt with the token's last four characters; 404 when none is stored. API keys are refused.

Auth: cookie session only; no scope. Idempotency-Key: ignored.

Authorization

cookieSession
cookie__Host-werft_session<token>

For the web console: the browser session cookie set by POST /v1/auth/login. It holds the scopes of the user's workspace role (owner: all; admin and member: all but sessions:recover). Requests other than GET must also send X-Requested-With: werft-web.

Path Parameters

id*string

The workspace's id.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Header Parameters

X-Requested-With?"werft-web"

Required with a cookie session: the literal werft-web.

Value in"werft-web"

Response Body

Removed; the receipt and the settings.

application/json
  1. response
token*
allowlist*array<>
Itemsitems <= 200
revision*integer
Range0 <= value <= 9007199254740991
receipt_id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
Example Request
curl -X DELETE 'https://example.com/v1/workspaces/497f6eca-6276-4993-bfeb-53cbbbba6f08/github-packages/token'
Example Response
{  "receipt_id": "c4a1e9d2-7b3f-4e8a-a6c5-1d2e3f4a5b6c",  "token": {    "configured": false,    "last4": null,    "login": null,    "expires_at": null,    "updated_at": null,    "updated_by": null  },  "allowlist": [],  "revision": 0}