Update a specific segment role for a specific segment by segment Id and role Id
put
/PASService/rest/services/v1/segments/{segmentId}/roles/{roleId}
Updates segment roles based on the specified segment Id and role Id.
Request
Path Parameters
-
roleId(required): string
Role Id
-
segmentId(required): string(guid)
Segment Id
Supported Media Types
- application/json
Root Schema : schema
Type:
string
Response
204 Response
This operation updates a specific segment role for a specific segment by segment Id and role Id successfully.
Examples
This example describes how to update a segment roles based on the specified segment 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/segments/5C8FA666-56A1-434E-8E81-A29A599E3E96/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": 100, "stateCode": "CA", "roleId": "0CA1DDA5-7683-42DA-837F-1EE0E45D05B4", "clientId": "37D2EEE3-8624-48C6-981F-2B2891CDB852", "externalclientId": "280D55E1-4BC6-4CA0-9AD2-BE6761DB55FC", "companyId": "7560150B-BA78-45EF-8747-209DCB9BB94D", "percentDollar": "C", "policyId": "F8CC7B38-95F9-4240-A528-B890AF87188C", "role": "72", "segmentId": "71A92161-CC46-44F6-85E1-6FACDFE7961D", "status": "01" } }