Skip to Content
Xeonr Developer Docs
API SpecificationPRIVATEApplications

Update Application

POST
/xeonr.auth.private.v1.ApplicationsService/UpdateApplication

Updates an existing application's configuration. Use update_mask to specify which fields to update.

Required scopes: auth:apps:edit (organisation-wide) or auth:apps:edit:own (applications owned by a team you belong to)

Authorization

BearerAuth
AuthorizationBearer <token>

JWT access token for internal API access. Requires 'private' scope for most endpoints, 'admin' scope for administrative operations.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

applicationId?string
Length1 <= length <= 64
name?string
Length1 <= length <= 64
slug?string
Length1 <= length <= 64
websiteUrl?string
Formaturi
Length1 <= length <= 128
automaticEnrollment?booleanDeprecated

Deprecated: set sign_in_mode (mask path "sign_in_mode"). Honoured only under the mask path "automatic_enrollment" while sign_in_mode is UNSPECIFIED: true means EVERYONE, false means TEAM_MEMBERS if the application is team-aware, else INVITE_ONLY.

audience?array<>

ORGANISATION ADMINISTRATORS ONLY — see CreateApplicationRequest.audience.

Itemsitems <= 10
applicationCustomConfig?
public?booleanDeprecated

Deprecated and ignored: the public catalogue is gone.

validationCallbackUrl?|

URL for the validation callback endpoint (called during PAR and consent for RAR)

Formaturi
iacManaged?boolean
supportsTeams?boolean

Whether the application understands Xeonr Teams: the explicit switch (see Application.supports_teams), under the mask path "supports_teams". Owner-settable. Switching it off is refused (FAILED_PRECONDITION) while team roles, team entitlements or the TEAM_MEMBERS mode exist, naming what is in the way.

automaticTeamBinding?booleanDeprecated

Deprecated: set team_enablement (mask path "team_enablement"). Honoured only under the mask path "automatic_team_binding" while team_enablement is UNSPECIFIED: true means SELF_SERVE, false means ADMIN_MANAGED.

console?

Console presentation; use update_mask path "console" to apply it.

allowDynamicClients?boolean

Lets clients created by RFC 7591 dynamic registration request this application's scopes without holding a ClientApplicationBinding. Only the PUBLIC-tier scopes that are not role-gated or service-account-only are admitted, and the user's consent and enrollment gates still apply. ORGANISATION ADMINISTRATORS ONLY.

platform?boolean

ORGANISATION ADMINISTRATORS ONLY: marks a first-party Xeonr application. Use update_mask path "platform" to apply it; a caller without the org-wide auth:apps:edit is refused if it changes the value. Not available on CreateApplicationRequest at all. validate:skip: a flag, nothing to constrain

signInMode?string

Who can sign in; mask path "sign_in_mode".

Value in"SIGN_IN_MODE_UNSPECIFIED" | "SIGN_IN_MODE_EVERYONE" | "SIGN_IN_MODE_TEAM_MEMBERS" | "SIGN_IN_MODE_INVITE_ONLY"
teamEnablement?string

Who may enable the application on a team; mask path "team_enablement". SELF_SERVE needs an organisation administrator and a platform application.

Value in"TEAM_ENABLEMENT_UNSPECIFIED" | "TEAM_ENABLEMENT_ADMIN_MANAGED" | "TEAM_ENABLEMENT_BY_REQUEST" | "TEAM_ENABLEMENT_SELF_SERVE"
tokenClaimsByReference?boolean

TEMPORARY (EP-49), ORGANISATION ADMINISTRATORS ONLY: see Application.token_claims_by_reference. Applied only under the mask path "token_claims_by_reference", never by an update without a mask; a caller without the org-wide auth:apps:edit is refused if it changes the value. validate:skip: a flag, nothing to constrain

updateMask?string

Fields to update. If not provided, all set fields are updated. Include "audience" to sync audiences (empty array removes all).

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.ApplicationsService/UpdateApplication" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "application": {
    "applicationId": "app_prod_myapp",
    "name": "My Application",
    "slug": "my-application",
    "websiteUrl": "https://myapp.example.com",
    "createdAt": "2023-01-15T01:30:15.01Z",
    "updatedAt": "2023-01-15T01:30:15.01Z",
    "enabledIdps": [
      "github",
      "discord"
    ],
    "scopes": [
      {
        "name": "read:users",
        "description": "Read access to user data",
        "isInternal": true,
        "isSensitive": true,
        "role": {
          "name": "admin",
          "iacManaged": true,
          "roleType": "ROLE_TYPE_UNSPECIFIED",
          "description": "string",
          "defaultOwnerRole": true,
          "displayName": "Administrator",
          "teamRank": 0,
          "ownerInherited": true
        },
        "isDelegatable": true,
        "isServiceAccountOnly": true,
        "isOrgOnly": true,
        "iacManaged": true,
        "dynamicCanGrant": true,
        "tier": "SCOPE_TIER_UNSPECIFIED"
      }
    ],
    "automaticEnrollment": true,
    "audience": [
      "https://api.example.com"
    ],
    "roles": [
      {
        "name": "admin",
        "iacManaged": true,
        "roleType": "ROLE_TYPE_UNSPECIFIED",
        "description": "string",
        "defaultOwnerRole": true,
        "displayName": "Administrator",
        "teamRank": 0,
        "ownerInherited": true
      }
    ],
    "supportsScopedRequests": true,
    "applicationCustomConfig": {
      "jsonSchema": {
        "property1": {},
        "property2": {}
      },
      "uiSchema": {
        "property1": {},
        "property2": {}
      }
    },
    "public": true,
    "resourceTypes": [
      {
        "type": "bucket",
        "jsonSchema": {
          "property1": {},
          "property2": {}
        },
        "displayTitleField": "title",
        "displayDescriptionField": "description",
        "iacManaged": true,
        "parents": [
          "string"
        ],
        "actions": [
          "string"
        ],
        "scopedEnforcement": true
      }
    ],
    "validationCallbackUrl": "https://uploads.example.com/api/auth/validate",
    "iacManaged": true,
    "supportsTeams": true,
    "automaticTeamBinding": true,
    "allowDynamicClients": true,
    "console": {
      "product": true,
      "origin": "string",
      "icon": "string",
      "colour": "string",
      "category": "string",
      "blurb": "string",
      "status": "string",
      "scopes": [
        "string"
      ],
      "pinnedByDefault": true,
      "docsUrl": "string",
      "supportUrl": "string",
      "displayName": "string"
    },
    "ownerTeam": "urn:xeonr:auth:team:6f1a…",
    "ownerTeamSlug": "string",
    "platform": true,
    "signInMode": "SIGN_IN_MODE_UNSPECIFIED",
    "teamEnablement": "TEAM_ENABLEMENT_UNSPECIFIED",
    "tokenClaimsByReference": true
  }
}