Marks every unread note left for the signed-in user as read and answers with how many it marked.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/user-preference/notes/read-all.do
Marks every unread note left for the signed-in user as read and answers with how many it marked. 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.
Responses
200
{success, marked}
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/read-all.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());