Updates the label identified by labelId with the provided JSON properties.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/label/{labelId}/update.do
Updates the label identified by labelId with the provided JSON properties. The request body may include 'value', 'defaultLabel', 'defaultLabelObjectType', and 'defaultLabelPlacementTypes'. If the label name is changed, uniqueness is validated against existing labels. Every property not sent keeps its stored value. Requires the LABELS_MANAGEMENT permission.
Path Params
labelIdintegerrequired
Unique numeric identifier of the label to update
100
Body
A JSON body. An example, built from the field definitions:
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/label/100/update.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new StringContent("{\"id\":\"100\",\"value\":\"Sports\",\"defaultLabel\":\"false\",\"defaultLabelObjectType\":\"1\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());