Beta APIs

[beta] Attach a file to an estimate

Attach a PDF, JPEG or PNG to an editable estimate and its work order. Supply exactly one of file (up to 7.5 MB decoded) or upload (up to 40 MB). For upload, PUT the declared file with matching Content-Type, Content-MD5 and Content-Length before uploadPut expires, then read the estimate for availability. Up to 50 work-order attachments are supported.

<b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).

To use this endpoint, select Write Work Orders under the Work Orders category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>

Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.

post/maintenance/estimates/attachments

Request

  • Base URL
    https://api.samsara.com
  • Auth
    HTTP bearer

Request body

estimateIdstring required

Estimate UUID or external ID. The estimate must be editable.

namestring

Filename, at most 255 Unicode characters; generated when omitted.

Example request

{
  "estimateId": "a81e26e6-50cd-4ae2-85b9-132c493c0871",
  "file": {
    "base64Content": "JVBERi0xLjcK",
    "contentType": "application/pdf"
  },
  "name": "repair-quote.pdf",
  "upload": {
    "contentMd5": "1B2M2Y8AsgTpgAmY7PhCfg==",
    "contentType": "application/pdf",
    "fileSizeBytes": 15000000
  }
}

Response

OK response.

Example response

{
  "data": {
    "createdAtTime": "2026-10-07T15:00:00Z",
    "id": "a81e26e6-50cd-4ae2-85b9-132c493c0871",
    "name": "repair-quote.pdf",
    "processingStatus": "finished",
    "updatedAtTime": "2026-10-07T15:00:00Z",
    "uploadPut": {
      "expiresAtTime": "2024-01-01T13:00:00Z",
      "url": "https://s3.amazonaws.com/bucket/key?signature=abc123"
    },
    "url": "https://example.com/file",
    "urlExpiresAt": "2026-10-07T15:00:00Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.