Set Application API Key Policy
Sets an application's API key policy. A zero field restores the platform default; max_lifetime_days -1 sets no lifetime cap.
Required scopes: auth:apps:edit (organisation-wide)
Authorization
BearerAuth JWT access token for internal API access. Requires 'private' scope for most endpoints, 'admin' scope for administrative operations.
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
1 <= length <= 64Per-application limits. A zero field means the platform default. max_lifetime_days also takes -1: no lifetime cap for this application, whatever the platform default (AUTH-443).
Response Body
application/json
application/json
curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.ApplicationsService/SetApplicationApiKeyPolicy" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{ "policy": {} }'{
"policy": {
"maxBindingsPerKey": 0,
"maxLiveKeysPerOwner": 0,
"maxLifetimeDays": -1,
"requireExpiry": true
},
"effective": {
"maxBindingsPerKey": 0,
"maxLiveKeysPerOwner": 0,
"maxLifetimeDays": -1,
"requireExpiry": true
}
}Revoke Automation Key POST
Revokes an automation key, optionally revoking every credential it issued. **Required scopes:** `auth:apps:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
Transfer Application POST
Changes which team owns an application. A team owner may move an application between teams they own; handing it to, or taking it from, the organisation requires an organisation administrator. **Required scopes:** `auth:apps:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)