WorkBuddy

Interact with WorkBuddy API - Field service management

Actions227

Attachments → Create upload session

AI-generated

Summary

Create a new upload session for attachments.

Inputs

  • fileName (required) — Name of the file to upload.
  • contentType (required) — MIME type of the file.
  • size (required) — Size of the file in bytes.
  • requestOptions — Optional collection of additional request settings, such as batching configuration.
  • allowUnauthorizedCerts — Whether to accept responses with untrusted SSL certificates.
  • proxy — HTTP proxy URL, optionally with credentials.
  • timeout — Request timeout in milliseconds.

Output shape

a single object containing the upload URL and session identifiers

The returned object includes fields like uploadUrl, sessionId, and expiresAt; pagination is not applicable.

Examples

Example 1: Upload a small PDF file with default settings

fileName: "report.pdf", contentType: "application/pdf", size: 12345

Example 2: Upload a large image using batching

fileName: "photo.jpg", contentType: "image/jpeg", size: 2500000, requestOptions: {"batch": {"batchSize": 1000}}

Example 3: Upload with custom proxy and longer timeout

fileName: "data.csv", contentType: "text/csv", size: 50000, proxy: "http://proxy.example.com:8080", timeout: 30000

Links

Discussion