Policy > Inventory > Context Profiles

Adds/Removes custom attribute values from list

This API adds/removes custom attribute values from list for a given attribute key.

Request:

Method:
POST
URI Path(s):
/policy/api/v1/infra/context-profiles/custom-attributes
/policy/api/v1/global-infra/context-profiles/custom-attributes
Request Headers:
n/a
Query Parameters:
CustomAttributeAction+
Request Body:
PolicyAttributes+

Example Request:

POST https://<policy-mgr>/policy/api/v1/infra/context-profiles/custom-attributes?action=add

Successful Response:

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

Example Response:

{ "key":"DOMAIN_NAME", "value":[ "*.office365.com", "*.azure.com" ], "datatype":"STRING" }

Required Permissions:

crud

Feature:

policy_context_profile

Additional Errors: