1. Help Center
  2. API
  3. Work Order/Scheduling API

Work Order/Task Attachments API

Create WorkOrder Attachment
URL /WorkOrderAttachment
Method POST
Body

{
"ContentType": "text/plain",
"FileName": "file7777.txt",
"Title": "filetitle7777",
"WorkOrderrId": 16
}

Response
HTTP/1.1 200 OK

{
"ContentType": "text/plain",
"FileName": "file7777.txt",
"Id": 3277,
"Title": "filetitle7777",
"WorkOrderId": 16
}

Comments

 

  Update WorkOrder Attachment
URL /WorkOrderAttachment/{workOrderAttachmentId}
Method PUT
Body

{
"Title": "filetitle7777888"
}

Response
HTTP/1.1 200 OK

{
"ContentType": "text/plain",
"FileName": "file7777.txt",
"Id": 3277,
"Title": "filetitle7777888",
"WorkOrderId": 16
}

Comments  
  Get WorkOrder Attachments
URL /WorkOrderAttachment/{workOrderId}/{page}/{size}
Method GET
Body

 

Response
HTTP/1.1 200 OK

[
{
"ContentType": "text/plain",
"FileName": "file7777.txt",
"Id": 3277,
"Title": "filetitle7777888",
"WorkOrderId": 16
}
]

Comments  
  Upload WorkOrder Attachment
URL /WorkOrderAttachment/Stream/{workOrderAttachmentId}
Method PUT
Body

{file content}

Response
HTTP/1.1 200 OK

{
"Data": "WorkOrder",
"Id": 3277,
"IsSuccess": true,
"Message": "Updated"
}

Comments

 

  Download WorkOrder Attachment
URL /WorkOrderAttachment/Stream/{workOrderAttachmentId}
Method GET
Body

 

Response
HTTP/1.1 200 OK
{file content}
Comments

This downloads a binary stream of data. You will need to save the data to a file with the appropriate filetype in order to open the attachment.

  Delete WorkOrder Attachment
URL /WorkOrderAttachment/{workOrderAttachmentId}
Method DELETE
Body

 

Response
HTTP/1.1 200 OK

{
"Data": null,
"Id": 0,
"IsSuccess": true,
"Message": "Attachment was deleted"
}

Comments