Request: POST
Signature: /api/v1/uploadjobdoc
Uploads a document for a Job or Work Order. The API expects multi-part form data in the body with the following parts.
"File": Must contain the file to be uploaded
"JobID": When uploading a document for the job, set this to the Job ID
"WorkOrderID": When uploading a document for a work order, set this to the Work Order ID
"Title": The document title. If not specified, the title is taken from the filename.
"IsPublic": Specify if the document is available for external users.
"Checklist": Specify checklist items that the document must be linked with. Separate each checklist item with the ~ character. Each item must be an exact match, but not case-sensitive.
The token must be passed as a Header in the request
The response provided is standard. Code will be 1 for success. The ID of the document will be returned in the Identity field.
{
"Code": 1,
"Info": "",
"RowsAffected": 1,
"Scalar": null,
"Identity": 304931,
"RetInfo": null
}