Update an API key
curl --request PATCH \
--url http://localhost:3001/v1/api-keys/{keyId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"scopes": [
"<string>"
]
}
'{
"id": "<string>",
"organizationId": "<string>",
"name": "<string>",
"prefix": "<string>",
"scopes": [
"<string>"
],
"createdByUserId": "<string>",
"lastUsedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z",
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}๐ Integrations & API Keys
Update an API key
Updates mutable API key fields such as name and scopes. Requires a signed-in dashboard session.
PATCH
/
v1
/
api-keys
/
{keyId}
Update an API key
curl --request PATCH \
--url http://localhost:3001/v1/api-keys/{keyId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"scopes": [
"<string>"
]
}
'{
"id": "<string>",
"organizationId": "<string>",
"name": "<string>",
"prefix": "<string>",
"scopes": [
"<string>"
],
"createdByUserId": "<string>",
"lastUsedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z",
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Headers
Minimum string length:
1Minimum string length:
1Path Parameters
Body
application/json
Response
Default Response
Available options:
active, expired, revoked โI
