Endpoints
Update key
Endpoints
Update key
PUT
/
keys
/
{id}
curl --request PUT \
--url https://api.datkey.dev/keys/{id} \
--header 'Content-Type: application/json' \
--data '{
"expires_at": 123,
"verification_limit": 123
}'
{
"key": {
"id": "<key_id>",
"name": "<key_name>",
"key": "flox_sk_05ad2bf*********",
"prefix": "flox_sk",
"length": 16,
"verifications": 10,
"verification_limit": 12,
"expires_at": 1733237153,
"meta": null,
"created_at": "2023-12-05T11:31:23.000000Z",
"updated_at": "2023-12-05T13:03:24.000000Z"
}
}
Headers
your workspace API key
Path Parameters
your key ID
Body
application/json
Response
200
application/json
OK
The response is of type object
.
curl --request PUT \
--url https://api.datkey.dev/keys/{id} \
--header 'Content-Type: application/json' \
--data '{
"expires_at": 123,
"verification_limit": 123
}'
{
"key": {
"id": "<key_id>",
"name": "<key_name>",
"key": "flox_sk_05ad2bf*********",
"prefix": "flox_sk",
"length": 16,
"verifications": 10,
"verification_limit": 12,
"expires_at": 1733237153,
"meta": null,
"created_at": "2023-12-05T11:31:23.000000Z",
"updated_at": "2023-12-05T13:03:24.000000Z"
}
}