Upsert integration new file
Creates or updates a new file template for an integration, with ownership verification.
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?string|null
Existing new file ID (omit for create)
Format
uuidname?string|null
Length
1 <= length <= 128extension?string|null
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?|null
contentTypeId?string|null
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": {
"id": "string",
"integrationId": "string",
"name": "string",
"extension": "string",
"creationType": "NEW_FILE_CREATION_TYPE_UNSPECIFIED",
"defaultContent": {
"multiple": {
"files": {
"property1": {
"stringContent": "string"
},
"property2": {
"stringContent": "string"
}
}
}
},
"contentTypeId": "string",
"createdAt": "2023-01-15T01:30:15.01Z",
"updatedAt": "2023-01-15T01:30:15.01Z"
}
}{
"code": "not_found",
"message": "string",
"details": [
{
"type": "string",
"value": "string",
"debug": {}
}
]
}