When enabled, API's keys that violate the organization's policy will be replaced automatically.
max_age_hours
integer | null
optional
length ≥ 24
The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the policy unset this value.
refresh_immediately
boolean
optional
If set to True, API keys that violate this policy will be replaced immediately after the request is made. There is no way to undo this.
Response
Responses
OK
object
object
enforce_refresh
boolean
optional
When enabled, API's keys that violate the organization's policy will be replaced automatically.
max_age_hours
integer | null
optional
length ≥ 24
The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the policy unset this value.