Upload and manage files on work orders.
Upload documents, photos, or diagrams to a work order. Files are organized into folders.
GET /workorders/{id}/attachments
{
"results": [
{
"id": 1,
"name": "Work Instructions",
"results": [
{
"id": 101,
"file": {
"name": "install_guide.pdf",
"link": "https://cdn.fieldnation.com/files/abc.pdf",
"size_bytes": 245000
},
"created": { "utc": "2025-01-15 10:00:00" }
}
]
},
{
"id": 2,
"name": "Completion Photos",
"results": []
}
]
}POST /workorders/{id}/attachments
{
"name": "Site Documentation"
}POST /workorders/{id}/attachments/{folder_id}
Content-Type: multipart/form-data
curl -X POST \
-H "Authorization: Bearer {token}" \
-F "file=@/path/to/document.pdf" \
https://api.fieldnation.com/api/rest/v2/workorders/{id}/attachments/{folder_id}const formData = new FormData();
formData.append('file', fileBlob, 'document.pdf');
fetch(`/workorders/${id}/attachments/${folderId}`, {
method: 'POST',
headers: { 'Authorization': `Bearer ${token}` },
body: formData
});PUT /workorders/{id}/attachments/{folder_id}/{attachment_id}
{
"filename": "updated_guide.pdf",
"visible_to_provider": true
}DELETE /workorders/{id}/attachments/{folder_id}/{attachment_id}
| Category | Extensions |
|---|---|
| Images | .jpg, .jpeg, .png, .gif |
| Documents | .pdf, .doc, .docx |
| Spreadsheets | .xls, .xlsx, .csv |
Maximum file size is typically 10MB. Large files may need to be compressed.
Providers typically upload completion photos via the mobile app. These appear in designated folders and are used for work verification.
Last updated on