HomeRecipesAPI ReferenceChangelogDiscussions
Log In
Discussions

Discussions

Ask a Question
Back to All

PUT Document - Keep the same URL

Hi,

I am trying to use /api/v1/base/Document to load a PDF report to each equipment asset so that our FM team can print QR codes that will allow anyone on site to view the PDF on their mobile device.

This idea works great for the initial document upload (POST) but I am having trouble with updating the documents when the content needs to change. I couldn't find many examples or discussions around documents but it seems that if I use PUT and just replace the binary file content/metadata and keep the same URL the actual document doesn't change.

I noticed in Corrigo UI it says "Replacing the file will cause the current public link to break"

Is it possible to update a documents content via the API and retain the same URL or a permanent URL that won't change?