NSX-T Data Center REST API
Patch an existing label object
Create label if not exists, otherwise take the partial updates.Note, once the label is created type attribute can not be changed.
Request:
Method:
PATCH
URI Path(s):
/policy/api/v1/infra/labels/{label-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
PolicyLabel+
Example Request:
PATCH https://<policy-mgr>/policy/api/v1/infra/labels/my-domains-label { "type" : "Domain", "refs" : ["/infra/domains/mydomain1", "/infra/domains/mydomain2"] }Successful Response:
Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a