PATCH
/
project
/
{id}
/
key
/
{key_id}
curl --request PATCH \
  --url http://localhost:3003/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"
  }
}

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

200
application/json

API key updated successfully

key
object