Access

Set the maximum key lifetime

Changed on

Sets maxKeyLifetimeDays, from 0 to 3650, and returns the saved settings. New API keys must expire within that many days; 0 lets keys never expire. Requires a signed-in session.

Requires the guardrail.manage permission. See Permissions for the roles and API key permissions that include it.

put/v1/authz/settings

Request

  • Base URL
    https://api.openrelay.inc
  • URL
    https://api.openrelay.inc/v1/authz/settings
  • Auth
    HTTP bearer

Request body

maxKeyLifetimeDaysinteger required

New keys must expire within this many days; 0 means keys may never expire.

updatedAtstring
updatedBystring

Response

Updated

maxKeyLifetimeDaysinteger required

New keys must expire within this many days; 0 means keys may never expire.

updatedAtstring
updatedBystring

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      endpoint added