Marks a note left for the signed-in user as read and answers with the note as the Notes tab lists it.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/user-preference/notes/{noteId}/read.do
Marks a note left for the signed-in user as read and answers with the note as the Notes tab lists it. A note already read keeps the time it was first read. Only the user does this: a session in which someone else is signed in as the user (switch user) is refused. Requires the NOTES_TAB_VISIBLE permission.
Path Params
noteIdintegerrequired
Numeric id of the note, as the list of my notes reports it
7
Responses
200
{success, note: {id, title, text, date, readAt}}
400
Bad request — invalid or missing parameters
401
Unauthorized — authentication error
403
The role does not show the Notes tab (NOTES_TAB_VISIBLE), or the session is someone signed in as the user
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/user-preference/notes/7/read.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());