REST API: Write Public Documents

Domino/Notes Version: 14.5FP1
Add-on Product (if appropriate, e.g. Verse / Traveler / Nomad / Domino REST API): REST API
Its Version: 1.1.7
Operating System: Linux
Client (Notes, Nomad Web, Nomad Mobile, Android/iOS, browser version): Postman


Problem/Query:

We have a document with $PublicAccess = 1 and a user with read access but enabled to write Public Documents.

That user can edit that document accessing with a browser but it cannot accessing via REST API (PUT).

Message is “Insufficient access, need AUTHOR (current level: READER)”.

Is there a reason for that?

Am i doing some mistake?

tommaso

Try selecting everyone (or your user) in the form property:

Hi,

thanks for your reply but unfortunately doesn’t work :frowning:

Sorry, it doesn’t.
I tried other way where user has author access but he doesn’t have access to created document with this “Form”. I can’t create or open form in edit mode in browser but I can create document via REST API.

I am going to report this product team.

Thank you for your feedback. This is something the Domino REST API will prioritize for the next release.

2 Likes

Hi Rwilkins, hi Arunagnihotri

I just tried with REST 1.1.7 but is not fixed.

A user with reader level still cannot PATCH a document defined as PublicDocument

Is it right?

tommaso

I’m so sorry, we missed PATCH :frowning: .

The workaround there would be to do a GET first and then a PUT, the PUT will remove values for fields that are in the schema but not in the payload, so you would have to GET it first and then include all fields in the PUT.

Thanks,
Ron Wilkins