Skip to content
Athena User Guide
Esc
↑↓navigate↵open⌘Jpreview

Keep every live system key valid until at least an instant; a revoked or expired key is never revived

Only the Athena platform’s own key for this event may call this. It is part of the platform’s event lifecycle, and every other key is refused with 403.

POST/api/admin/api-keys/system/extend
Authorization
AuthorizationBearer token · headerrequired
Request body
requiredapplication/json
expiresAtstring<date-time>required
matches ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
Responses
200

Success

extendednumberrequired
keysobject[]required
Show properties
Array of object
labelstring | nullrequired
Show properties
Any of:
string
string
null
null
expiresAtstring<date-time>required
401

Unauthorized

errorstringrequired
403

Response for status 403

errorstringrequired
409

Response for status 409

errorstringrequired
422

Validation failed

typestringrequired
onstringrequired
summarystring
messagestring
foundany
propertystring
expectedstring
500

Unhandled server error

errorstringrequired
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST '/api/admin/api-keys/system/extend' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "expiresAt": "2019-08-24T14:15:22Z"
}'
Response
{
  "extended": 0,
  "keys": [
    {
      "label": "string",
      "expiresAt": "2019-08-24T14:15:22Z"
    }
  ]
}