Update an API Key

PATCH
/api-keys/{apiKeyId}
/api-keys/{apiKeyId}

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

Session token. Example: "Authorization": "Bearer <token>"

In: header

X-API-Key<token>

API key. Example: "X-API-Key": "<apiKey>"

In: header

Request Body

application/jsonRequired

expiration_datestring

namestring

revoked_atstring

team_idstring

Path Parameters

apiKeyId
Required
string

The id of the API key

curl -X PATCH "https://api.endless.io/v1/api-keys/string" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "expiration_date": "string",
    "name": "string",
    "revoked_at": "string",
    "team_id": "string"
  }'

Success

{
  "created_at": "string",
  "created_by_id": "string",
  "expiration_date": "string",
  "hint": "string",
  "id": "string",
  "name": "string",
  "revoked_at": "string",
  "team_id": "string",
  "user_id": "string"
}