cURL
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" } }
your workspace API key
your key ID
OK
The response is of type object.
object