API-keys

Update a an API-key associated with a Consumer

Update a an API-key associated with a Consumer using ID.

patch/consumers/{ConsumerIdForNestedEntities}/key-auth/{KeyAuthId}

Path parameters

ConsumerIdForNestedEntitiesstring required

Consumer ID for nested entities

KeyAuthIdstring required

ID of the API-key to lookup

Request body

created_atinteger nullable

Unix epoch when the resource was created.

idstring nullable
keystring required
tagsstring[]
ttlinteger nullable

key-auth ttl in seconds

Example request

{
  "consumer": {
    "id": "84a73fb8-50fc-44a7-a4d5-aa17728ee83f"
  },
  "id": "b2f34145-0343-41a4-9602-4c69dec2f269",
  "key": "IL1deIyHyQA40WpeLeA1bIUXuvTwlGjo"
}

Response

Successfully updated API-key

created_atinteger nullable

Unix epoch when the resource was created.

idstring nullable
keystring required
tagsstring[]
ttlinteger nullable

key-auth ttl in seconds

Example response

{
  "consumer": {
    "id": "84a73fb8-50fc-44a7-a4d5-aa17728ee83f"
  },
  "id": "b2f34145-0343-41a4-9602-4c69dec2f269",
  "key": "IL1deIyHyQA40WpeLeA1bIUXuvTwlGjo"
}

Changes