Update a specific role for a specific policy by policy Id and role Id
put
/PASService/rest/services/v1/policies/{policyId}/roles/{roleId}
Updates a 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:
string
Response
204 Response
This operation updates a specific role for a specific policy by policy Id and role Id successfully.
Examples
This example describes how to update a role based on the specified policy Id and role Id.
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": { "multiFields": { }, "roleAmount": 12, "rolePercent": 34, "stateCode": "CA", "roleId": "446A8532-2C6E-408C-896B-D851A6F14988", "clientId": "5149CC4C-1D1C-45BF-910B-D0DA1B3A785B", "externalclientId": "15CF04F1-F809-45F0-8F8F-E32C19AD2353", "companyId": "390662B7-2942-47F1-AE0D-CCF4B2A7CE6F", "percentDollar": "232", "policyId": "989BB237-1C7C-4BE1-A746-F945C236B3F1", "role": "11", "segmentId": "925DC381-DCDC-4498-8EB0-442DBD204252", "status": "01" } }