Policy > Inventory > Groups > Groups

Patch a group path expression

If a group path_expression with the expression-id is not already present, create a new pathexpresison.
If it already exists, replace the existing pathexpression.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX-T.

Request:

Method:
PATCH
URI Path(s):
/policy/api/v1/infra/domains/<domain-id>/groups/<group-id>/path-expressions/<expression-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
PathExpression+

Example Request:

PATCH https://<policy-mgr>/policy/api/v1/infra/domains/vmc/groups/webgroup/path-expression/exp1 { "paths": [ "/infra/domains/default/groups/childgroup8" ], "resource_type": "PathExpression", "id": "exp1" }

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Required Permissions:

crud

Feature:

policy_grouping

Additional Errors: