Skip to Content
Xeonr Developer Docs

Upsert integration

POST
/uplim.api.v1.IntegrationAdminService/UpsertIntegration

Creates or updates an integration for an OAuth client, with ownership verification. Application association is derived from the client.

Required scopes: upl:private

Authorization

OAuth2 upl:private
AuthorizationBearer <token>

OAuth 2.0 authorization

In: header

Scope: upl:private

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

clientId?string

The OAuth client ID that owns this integration. Empty asks upl to create an APPLICATION-mode integration's client: the caller's own in personal scope, or one in the team application application_id names.

Formatuuid
updateMask?string
name?|
Length1 <= length <= 128
scoping?string

Scoping mode: "none", "bucket", or "folder"

Lengthlength <= 16
defaultBucketTypeId?|

Required when scoping = "bucket": the default bucket type for this integration

Match^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
folderBehavior?string

Required when scoping = "folder": controls how the integration folder behaves enum.defined_only = true

Value in"INTEGRATION_FOLDER_BEHAVIOR_UNSPECIFIED" | "INTEGRATION_FOLDER_BEHAVIOR_LINK" | "INTEGRATION_FOLDER_BEHAVIOR_CONTENT_TYPE" | "INTEGRATION_FOLDER_BEHAVIOR_FOLDER"
folderLinkUrl?|

Required when folder_behavior = LINK: the URL to open uri_or_empty // must be a URI or empty

Lengthlength <= 2048
mode?string

How the integration is surfaced to users. Set on create; immutable thereafter. Sending a different mode on update returns InvalidArgument. enum.defined_only = true

Value in"INTEGRATION_MODE_UNSPECIFIED" | "INTEGRATION_MODE_OWNED" | "INTEGRATION_MODE_APPLICATION"
bucketLauncherEnabled?boolean

When true (and mode = APPLICATION), the app appears as a launcher chip at the top of every bucket where it's installed. Ignored unless mode = APPLICATION. validate:skip a bool has no bounds

slug?|

URL-safe namespace component of content type URNs. Set on create; immutable thereafter. Sending a different slug on update returns InvalidArgument. If omitted on create, derived from name. Format: lowercase letter + lowercase alphanumeric/hyphen, 2-64 chars. Reserved values: "default", "system", "uplim", "xeonr".

Match^[a-z][a-z0-9-]{0,62}[a-z0-9]$
Length2 <= length <= 64
discoverable?|

When true, lists the integration in ListAvailableIntegrations so bucket admins can discover + install it. Settable on any mode; only takes effect for OWNED-mode integrations that aren't discoverable by default. Send via update_mask to flip. validate:skip a bool has no bounds

ownerScope?||

The owner to register the integration under, honoured on create only. A team requires the caller to hold the upl admin role there, and client_id must belong to an auth application that team owns, unless application_id asks upl to create the client. On update it must name the existing owner or be omitted: ownership does not change through upsert.

applicationId?|

Team scope only, with an empty client_id and mode = APPLICATION: the auth application, owned by the owner_scope team, that upl creates the integration's hidden client in (system_managed_client, deleted with the integration). ListIntegrationTargets in team scope lists the candidates. Refused with a client_id, in personal scope, and for an application the team does not own.

Length1 <= length <= 128
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.IntegrationAdminService/UpsertIntegration" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "integration": "map[apiKeyEnabled:false bucketLauncherEnabled:true createdAt:2026-09-14T11:02:00Z discoverable:true integrationId:6f1c2d3e-4b5a-4c7d-8e9f-0a1b2c3d4e5f isSystem:false mode:INTEGRATION_MODE_APPLICATION name:Markdown Studio oauthApplicationId:c2b4d6e8-0a1c-4e3f-8b5d-7f9a1c3e5b7d oauthClientId:a3c9e7f2-1b4d-4e8a-9c6f-2d7b5e1a8c04 ownerTeam:urn:xeonr:auth:team:0f6b5f8c-21f4-4b6e-9b4f-3a6a2c7d8e91 ownerTeamSlug:acme scoping:none slug:markdown-studio updatedAt:2026-10-22T09:30:00Z]"
}