Skip to Content
Xeonr Developer Docs
UplApiUploads

Create uploads from a new-file template

POST
/uplim.api.v1.BucketUploadsService/CreateUploadsFromTemplate

Materializes an IntegrationNewFile template into the target bucket. Server resolves default_content (inline strings or upload_id references in the integration's internal bucket), creates the Folder / Upload rows, and writes the bytes. Requires the template's parent integration to be APPLICATION-mode and installed on the bucket.

Required scopes: upl:uploads:create

Authorization

OAuth2 upl:uploads:create
AuthorizationBearer <token>

OAuth 2.0 authorization

In: header

Scope: upl:uploads:create

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

bucketRef?|&|
parentPath?string

Folder path the template should be materialized into (the parent directory for UPLOAD; the parent of the created folder for FOLDER / VIRTUAL_FILE).

Length1 <= length <= 256
templateId?string

IntegrationNewFile.id

Formatuuid
name?string

User-supplied display name. For UPLOAD this becomes the upload's slug + filename (with the template's extension appended); for FOLDER / VIRTUAL_FILE this becomes the folder name. Required.

Length1 <= length <= 128
tags?array<>

Tags to apply to the created upload(s).

Itemsitems <= 1000
uploadedBy?string

Display name of the creating user (for attribution on uploads).

Lengthlength <= 4096
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.BucketUploadsService/CreateUploadsFromTemplate" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "folder": "map[colour:#3b82f6 createdAt:2026-10-22T09:30:00Z externalParentPath:/ externalPath:/screenshots folderId:319 integrationHidden:false isShareRoot:false order:0 parentPath:/docs path:/docs/q3-report privateAccess:false updatedAt:2026-10-22T10:15:00Z virtualFileEnabled:true virtualFileName:Q3 report]",
  "uploads": [
    "map[author:map[userId:3 username:luke] contentUrl:https://storage.upl.im/uploads/9b/7e/4d/2a/9b7e4d2a-3c1f-4e8b-a6d5-2f0c8e1b7a94.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=900&X-Amz-Signature=3f9a… createdAt:2026-10-22T09:30:00Z externalPath:/screenshots integrationHidden:false isVirtualFile:false order:0 path:/docs/q3-report private:false sizeBytes:18240 slug:yjs.json tags:[screenshot work] thumbnailContentTypeIconName:faFileImage thumbnailContentTypeUrn:default:image updatedAt:2026-10-22T10:15:00Z uploadId:e1c7a35b-82d4-4f19-9a0e-6b3d5f7c2a18 url:https://i.example.com/docs/q3-report/yjs.json version:1]"
  ]
}