Update segment roles

put

/PASService/rest/services/segments/{segmentId}/roles/{roleId}

Updates a segment roles based on the specified segment Id and role 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}\}?
    Role Id
  • Pattern: \{?[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}?
    Segment 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 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" -u username:password "server:port/PASService/rest/segments/5C8FA666-56A1-434E-8E81-A29A599E3E96/roles/0CA1DDA5-7683-42DA-837F-1EE0E45D05B4"

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": "B8D6328F-07CD-4A94-BB4C-F82DC04A3420",
    "role": "72",
    "segmentId": "5C8FA666-56A1-434E-8E81-A29A599E3E96",
    "status": "01"
  }
}"
Back to Top