Sign in

Upload file to folder

documented

Upload a file to a specific folder.

POST /Files/{FolderId}Filesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.xero.com/files.xro/1.0/Files/{{$FolderId}}" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Accept: application/json" \
  -H "xero-tenant-id: {{$xero_tenant_id}}" \
  -H "Idempotency-Key: {{$idempotency_key}}" \
  -F "body=@{{$path_to_file}};type={{$mimeType}}" \
  -F "name={{$name}}" \
  -F "filename={{$filename}}"
Upload file to folder · Xero · OpenIntegrations