REST API markRead flag with GET

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


Problem/Query:

In the improvement of Rest API 1.0.6 is written:

Added ability to mark a document as read (markRead=true) or unread (markUnread=true) when retrieving a document using the GET v1/document/{unid} endpoint.

But I didn’t find any clue on how to activate this feature.

Thanks of any suggestion
tommaso

There’s no activation step. If you check the OpenAPI spec that can be accessed from the admin interface (“OpenAPI v3” tile, as “Basis”) and scroll down to the getDocument endpoint, you’ll see markRead and markUnread are query string parameters. You’ll be able to test it there and, if you test it, it will give the corresponding cURL command to use.

1 Like