Skip to main content
PATCH
/
project
/
{id}
/
key
/
{key_id}
Update API key
curl --request PATCH \
  --url https://api.basic.tech/project/{id}/key/{key_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "roles": "<string>"
}
'
{
  "key": {
    "id": "<string>",
    "label": "<string>",
    "roles": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.basic.tech/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT Authorization Token header using the Bearer scheme

Path Parameters

id
string
required

Unique identifier of the project

key_id
string
required

Unique identifier of the API key to update

Body

application/json
label
string

New label for the API key

roles
string

New comma-separated list of permissions

Response

API key updated successfully

API key updated successfully

key
object