PUT
/
v1
/
key
/
{id}
curl --request PUT \
  --url https://api.formizee.com/v1/key/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "My New Key",
  "expiresAt": "90-days"
}'
{
  "id": "key_4VjHrJoEwAFC6itz8oUBW9NW2bia",
  "name": "My New Key",
  "workspaceId": "ws_4VjHrJoEwAFC6itz8oUBW9NW2bia",
  "lastAccess": "2024-07-23 12:41:45.38215",
  "expiresAt": "2024-07-23 12:41:45.38215"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The id of the key

Example:

"key_4VjHrJoEwAFC6itz8oUBW9NW2bia"

Body

application/json

Response

200
application/json

Update a key

The response is of type object.