Partially update a specific role for a specific policy by policy Id and role Id
patch
/PASService/rest/services/v1/policies/{policyId}/roles/{roleId}
Partially updates a policy role based on the specified policy Id and role Id
Request
Path Parameters
-
policyId(required): string(guid)
Policy Id
-
roleId(required): string(guid)
Role Id
Supported Media Types
- application/json
Root Schema : schema
Type:
stringResponse
204 Response
successful operation
Examples
This example describes how to update a role partially for the fields given in request body for a specified policy by policy Id and role Id of the policy.
Note
Below is the list of Fields that are not allowed for update using PATCH.
- RoleId
- companyId
- policyId
- segmentId
- role
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X PUT \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-L "http://server:port/PASService/rest/services/v1/policies/989BB237-1C7C-4BE1-A746-F945C236B3F1/roles" \
-d '{"Use this placeholder to plug-in the example request body given below"}'
Example Request Body
The following shows an example of the request body in JSON format:
{
"role": {
"roleAmount": 12,
"rolePercent": 100
}
}