I use the cloud rest api to upload a text file to a page I've created on our server. If I click on the '...' and then on Attachments, I see the freshly uploaded file listed, although there's no hint of its existence on the page I uploaded to. I want to create a labelled link on my page which points at the uploaded file, again using the rest api (so I can script this)
When I use the api to ask for attachments, there's no reference that I can see to the uploaded file,
I expect to be generating regular uploads from scripts (tracking hard disk failure statistics), so it all has to happen without manual intervention
Hello @Jim Segrave !
As I understand, you need to add attachments to pages automatically via REST API and currently you are able to insert them in the attachments list only.
This happens because when we upload something via REST API it is simply listed as an attachment and no change is applied to the actual body of the page.
For the attachment to show up we need to touch the page body and make the necessary changes.
I believe that this thread here in the community takes care of the situation at hand:
I hope this helps! Looking forward to your reply.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.