Create role

post

/PASService/rest/services/policies/{policyId}/roles

Creates single or multiple roles based on the specified policy Id

Request

Supported Media Types
Path Parameters
  • Pattern: \{?[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}?
    Policy Id
Body ()
Root Schema : schema
Type: string
Back to Top

Response

Supported Media Types

Default Response

successful operation
Back to Top

Examples

This example describes how to create a single or multiple roles based on the specified policy 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/policies/C9343F06-0EDE-432E-86A3-36FF14E65379/roles"

Example Request Body

The following shows an example of the request body in JSON format:

"{
  "roles": [
    {
      "multiFields": {
        
      },
      "roleAmount": 12,
      "rolePercent": 100,
      "stateCode": "CA",
      "roleId": "A7FE1693-CB8D-493F-B6C4-F6C0A937BB39",
      "clientId": "EC97ED8E-090E-4B0B-A7BC-56263EB9A493",
      "externalclientId": "C8D9541F-A592-40F6-9239-CC0046812172",
      "companyId": "F1FAEC56-ACB3-4243-AF2A-4632866CA2F8",
      "percentDollar": "S",
      "policyId": "C9343F06-0EDE-432E-86A3-36FF14E65379",
      "role": "01",
      "segmentId": "3B8CDB16-FA08-4EB9-8ADC-6EC8150319FA",
      "status": "01"
    }
  ]
}"

Example Response Body

The following shows an example of the response body in JSON format:

"{
  "roles": [
    "EA8B3C28-6950-407A-84DB-211AA99B0A2C"
  ]
}
"
Back to Top