Upsert integration new file
Creates or updates a new file template for an integration, with ownership verification.
Required scopes: upl:private
Authorization
OAuth2 upl:privateAuthorizationBearer <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
integrationId?string
The parent integration that owns this new file template
Format
uuidupdateMask?string
newFileId?|
Existing new file ID (omit for create)
Format
uuidname?|
Length
1 <= length <= 128extension?|
Length
length <= 32creationType?string
enum.defined_only = true
Value in
"NEW_FILE_CREATION_TYPE_UNSPECIFIED" | "NEW_FILE_CREATION_TYPE_FOLDER" | "NEW_FILE_CREATION_TYPE_VIRTUAL_FILE" | "NEW_FILE_CREATION_TYPE_UPLOAD"defaultContent?||
contentTypeId?|
Pins materialized uploads to this content type (must belong to the same integration). Sent via update_mask to flip; send empty string to clear.
Length
length <= 64[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.IntegrationAdminService/UpsertIntegrationNewFile" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"newFile": "map[contentTypeId:9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d createdAt:2026-09-14T11:02:00Z creationType:NEW_FILE_CREATION_TYPE_UPLOAD defaultContent:map[single:map[stringContent:# Untitled\n]] extension:md id:5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f integrationId:6f1c2d3e-4b5a-4c7d-8e9f-0a1b2c3d4e5f name:Markdown document updatedAt:2026-10-22T09:30:00Z]"
}