HomeRecipesAPI ReferenceChangelogDiscussions
Log In
Discussions

Discussions

Ask a Question
Back to All

Document uploaded via API - make available on client portal

Hi,

This is a follow-on questions from this earlier one:
https://developer.corrigo.com/discuss/66154572062c07002d3e3f08

I am making an API POST call to upload PDF documents to WOs.

The document is successfully attached to the WO, however it is not visible in the client portal.

Is there a setting I can use in the API call to make it visible to clients?

e.g. using the "IsPublic" or "IsShared" setting?

The current API call, 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"
}
}
}

Thank you for any help you are able to give with this.

Graham