HomeRecipesAPI ReferenceChangelogDiscussions
Log In
Discussions

Discussions

Ask a Question
Back to All

Update Activity Log when uploading document via API

Hi,

When a user uploads a document to a WorkOrder manually via Corrigo UI, the action is also captured in the Activity Log on the WO.

However, when I upload a document using the API, the upload is not recorded in the Activity Log on the WorkOrder.

Is there a way to also capture this activity when uploading via the API?

For the API call, it is based on:
https://developer.corrigo.com/reference/post#document-example

And my specific command to upload a PDF Binary is, using POST method:
{
"Entity": {
"ActorId": 68064,
"ActorTypeId": "WO",
"Title": "PDF report from Binary",
"IsShared": false,
"IsPublic": false,
"StorageTypeId": "Cloud",
"DocType": {"DisplayAs":"Picture"
},
"Blob":{
"Body":
"PDF_BINARY(REDACTED)",
"FileName":"BinaryPdfAsPicture.pdf"
}
}
}