PUT
/
users
/
api-keys
curl --request PUT \
  --url https://api.wirespeed.co/users/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "role": "ADMIN",
  "expirationDays": 123
}'
{
  "id": "<string>",
  "teamId": "<string>",
  "userId": "<string>",
  "expiration": "<string>",
  "lastUsed": "<string>",
  "role": "ADMIN",
  "name": "<string>",
  "createdAt": "<string>",
  "token": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

The response is of type object.