Create segment roles
post
/PASService/rest/services/segments/{segmentId}/roles
Creates a segment role based on the specified segment Id
Request
Supported Media Types
- application/json
Path Parameters
-
segmentId: string
Pattern:
\{?[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}?
Segment Id
Root Schema : schema
Type:
string
Response
Supported Media Types
- application/json
Default Response
successful operation
Examples
This example describes how to create a segment role based on the specified segment Id.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X POST -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/cases"
Example Request Body
The following shows an example of the request body in JSON format:
"{ "roles": [ { "multiFields": { }, "roleAmount": 12, "rolePercent": 100, "stateCode": "CA", "roleId": "B8D6328F-07CD-4A94-BB4C-F82DC04A3420", "clientId": "37D2EEE3-8624-48C6-981F-2B2891CDB852", "externalclientId": "4B29A809-18AD-4D2F-9B0F-821049FCFF63", "companyId": "2A93476C-E995-4001-870E-287EE8475921", "percentDollar": "C", "policyId": "1950CF65-B1FC-46F1-B5B4-541A62284A8F", "role": "72", "segmentId": "5C8FA666-56A1-434E-8E81-A29A599E3E96", "status": "01" } ] }"
Example Response Body
The following shows an example of the response body in JSON format:
"{ "roles": [ "EA8B3C28-6950-407A-84DB-211AA99B0A2C" ] }"