Xeonr Developer Docs

Upsert integration new file

POST
/uplim.api.v1.IntegrationAdminService/UpsertIntegrationNewFile

Creates or updates a new file template for an integration, with ownership verification.

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

integrationId?string

The parent integration that owns this new file template

Formatuuid
updateMask?string
newFileId?string|null

Existing new file ID (omit for create)

Formatuuid
name?string|null
Length1 <= length <= 128
extension?string|null
Lengthlength <= 32
creationType?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.

Lengthlength <= 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": {}
    }
  ]
}