WorkBuddy

Interact with WorkBuddy API - Field service management

Actions227

Stages Files → Create file (Stages)

AI-generated

Summary

Create a stage file by uploading data to a specified stage

Inputs

  • stageId (required) — Stage ID or stage number where the file will be stored
  • jobId (required) — Identifier of the job associated with the file
  • requestOptions — Configuration for the HTTP request, including batching, proxy, SSL settings, and timeout
  • allowUnauthorizedCerts — Whether to skip SSL certificate validation when making requests
  • proxy — HTTP proxy URL, optionally with authentication credentials
  • timeout — Maximum wait time in milliseconds for the server response

Output shape

a single file object representing the newly created file

The response contains the created file details; success returns HTTP 201 and the file record.

Examples

Example 1: Upload a CSV of tasks to stage 5 of job 12345

stageId=5, jobId=12345, requestOptions.batchSize=100

Example 2: Create a file via a corporate proxy with a custom timeout

stageId=2, jobId=987, requestOptions.timeout=15000, proxy=http://proxy.example.com:3128

Example 3: Create a file while ignoring SSL certificate errors

stageId=1, jobId=555, requestOptions.allowUnauthorizedCerts=true

Links

Discussion