Change the validity of new credentials
const url = 'https://example.com/api/v1/settings/credentials';const options = { method: 'PUT', headers: { cookie: 'bl_authority_session=<bl_authority_session>', 'Content-Type': 'application/json' }, body: '{"validity_days":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/settings/credentials \ --header 'Content-Type: application/json' \ --cookie bl_authority_session=<bl_authority_session> \ --data '{ "validity_days": 1 }'Applies to credentials issued from now on (decisions #43).
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
1 to 365.
Example generated
{ "validity_days": 1}Responses
Section titled “Responses”OK.
The validity of new credentials: documents the JSON built in [view].
object
How long a new credential is valid.
After two thirds of the lifetime, the holder is offered a new credential.
How long the authority may be unavailable before credentials expire.
Example generated
{ "validity_days": 1, "default_days": 1, "min_days": 1, "max_days": 1, "renew_after_hours": 1, "outage_margin_hours": 1}The request is not valid.
The body of every failed call to a management API.
object
object
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
For people; may change between versions.
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}No valid session, DPoP-bound token or API key.
The body of every failed call to a management API.
object
object
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
For people; may change between versions.
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}The caller lacks the role this operation needs; or a change with the session cookie came from a page of another site (cross_site_request, decisions #83).
The body of every failed call to a management API.
object
object
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
For people; may change between versions.
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}