Add or delete individual labels for a specific resource model

To update labels for a specific resource, perform a POST operation to reapply all of label attributes. View the labels attributes by using a GET operation, edit the attributes, and then perform a POST operation. If you delete labels, the labels are removed during the POST operation.

Prerequisites

  • Minimum required session ID privileges: a session ID with privileges to edit the resource model.

Updating labels for a specific resource model using REST APIs
  1. Perform a GET operation on a resource collection URI (for example, rest/server-profiles) and then select a resource model URI.

  2. Get the label using the URI from step 1.

    GET /rest/labels/resources/{resource URI}

  3. Edit the labels.

  4. Update the labels using the resource URI that you selected in step 1. Any labels that you deleted in step 3 are removed from the resource during the update POST operation.

    POST /rest/labels/resources/