Rename an API key
Rename one of your API keys; its secret and permissions stay. Use it when the user wants a key's name to say where it is used.
Rename one of your API keys; its secret and permissions stay. Use it when the user wants a key's name to say where it is used.
Authenticate as a user with a personal access token.
Send it as a bearer token in the Authorization header:
Authorization: Bearer <personal-access-token>Personal access tokens act on behalf of the user that created them and are required by endpoints that perform user actions, such as reviewing builds and posting comments.
In: header
Path Parameters
Id of the API key (list_api_keys).
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/me/api-keys/string" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "id": "string", "name": "string", "tiers": [ "string" ], "readOnly": true, "accountSlugs": [ "string" ], "source": "user", "createdAt": "2019-08-24T14:15:22Z", "expireAt": "2019-08-24T14:15:22Z", "lastUsedAt": "2019-08-24T14:15:22Z"}Create an API key POST
Create an API key limited to the given permission tiers and accounts (the accounts this connection reaches when omitted). The secret is returned once. Use it when the user needs a key for CI, a script or another tool.
Revoke an API key DELETE
Delete an API key; anything using it stops working. Asks for confirmation once (confirmToken). Use it when a key is no longer needed or may have leaked.