Attach files and form/job diary content to a ServiceM8 job via the Attachments API

domain: developer.servicem8.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. POST to the Attachment endpoint first to create the attachment metadata record, setting related_object to "job", related_object_uuid to the job's UUID, attachment_name, and file_type
  2. Take the UUID returned (or supplied) from the metadata create call and POST the actual file bytes to the Attachment/{uuid}.file endpoint
  3. Set the active flag appropriately so the attachment shows up in the job diary/attachments list as expected
  4. List attachments filtered by related_object_uuid to confirm the file is now associated with the job
  5. If working with completed job forms (e.g. checklist/forms data captured on-site), treat the exported form content as an attachment as well unless a dedicated forms endpoint applies to your use case
  6. Handle large file uploads with appropriate content-type headers and retry logic, since a failed second-step upload leaves an orphaned metadata record

Known gotchas

Related routes

Attach files to Xero invoices using the Files API and manage invoice-level attachments
developer.xero.com · 6 steps · unrated
Authenticate to ServiceM8 and create a job together with its job activities via the API
developer.servicem8.com · 6 steps · unrated
Attach a file and add a note to a Zoho CRM record via API
www.zoho.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans