Gets all Assurance Levels for the agent

get

/oaa-policy/assuranceLevel/v1

Request

Query Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

AssuranceLevels retrieved successfully.
Body ()
Root Schema : AssuranceLevelsResponse
Type: object
Contains a list of a user's assurance levels.
Show Source
Nested Schema : assuranceLevels
Type: array
Array of assurance levels
Show Source
Nested Schema : AssuranceLevelsAPIResponse
Type: object
Response for the assurance level API.
Show Source
Nested Schema : Pagination2
Type: object
Object determines pagination of results.
Show Source
Nested Schema : schema
Type: object
Details for a single assurance level.
Show Source

401 Response

Unauthorized

405 Response

Invalid input
Body ()
Root Schema : AssuranceLevelsAPIResponse
Type: object
Response for the assurance level API.
Show Source

500 Response

Internal server error

503 Response

Service Unavailable
Back to Top

Examples

The following example shows a sample request and response for retrieving all assurance level for agent.

cURL Command to Retrieve Assurance Level in JSON Format

curl --location --request GET '<PolicyUrl>/oaa-policy/assuranceLevel/v1?agentid=dede64d3-1d6a-42e9-89e1-714e88f8967c' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>'

Sample Response in JSON Format

{
    "assuranceLevels": [
        {
            "id": "AssuranceLevel1",
            "name": "AssuranceLevel1",
            "description": "Assurance Level 1",
            "agentid": "dede64d3-1d6a-42e9-89e1-714e88f8967c"
        }
    ],
    "message": {
        "responseCode": "200",
        "responseMessage": "Assurance level information."
    }
}

cURL Command to Retrieve Assurance Level in XML Format

curl --location --request GET '<PolicyUrl>/oaa-policy/assuranceLevel/v1?agentid=dede64d3-1d6a-42e9-89e1-714e88f8967c' \
--header 'Content-Type: application/xml' \
--header 'Accept: application/xml' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>'

Sample Response in XML Format

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <AssuranceLevelsResponse>
     <assuranceLevels>
         <id>AssuranceLevel1</id>
         <name>AssuranceLevel1</name>
         <description>Assurance Level 1</description>
         <agentid>dede64d3-1d6a-42e9-89e1-714e88f8967c</agentid>
     </assuranceLevels>
     <message>
         <responseCode>200</responseCode>
         <responseMessage>Assurance level information.</responseMessage>
     </message>
</AssuranceLevelsResponse>
Back to Top