Removes the note from the user's Notes tab for good. Requires the right to edit the user: a role the caller may create users in (the bar the console's user page uses).
Path Params
userIdintegerrequired
Numeric id of the user, as /rest-api/system-users/search.do reports it
42
noteIdintegerrequired
Numeric id of the note, as the list of the user's notes reports it
7
Responses
200
{success, deletedNoteId}
400
Bad request — invalid or missing parameters
401
Unauthorized — authentication error
403
The caller may not edit users of the target's role
404
No user with this id, or no note with this id for that user
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://YOUR-NETWORK-DOMAIN/rest-api/system-users/42/notes/7.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());