Add Cart

Items are added to the cart by creating a request with the URI /requests PUT or POST.

cURL Example for Requesting Role for Another User

curl  -H "Content-Type: application/json"  -H "X-Requested-By: <anyvalue>"  -X POST  -u username:password  -d @post.json https://pseudo.com/iam/governance/selfservice/api/v1/requests

POST Request Body

{
  "requests" :[
		{
            "requestId": "Req1001",
			"reqJustification" : "Request role for sub-ordinate",
			"reqBeneficiaryList":
			[
				{
					"id": "24"
				}
			],
			"reqTargetEntities":
			[
				{
					"entityId": "12",
					"entityType": "role",
					"startDate" : "2019-03-19T01:30:00Z",
					"endDate" : "2019-09-25T18:30:00Z"
				},
				{
					"entityId": "13",
					"entityType": "role",
					"startDate" : "2019-03-19T01:30:00Z",
					"endDate" : "2019-09-25T18:30:00Z"
				}
			]
		}
	]
}

POST Response Body

{
    "links": [
        {
            "rel": "self",
            "href": "https://pseudo.com/iam/governance/selfservice/api/v1/requests"
        }
    ],
    "requests": [
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://pseudo.com/iam/governance/selfservice/api/v1/requests/3"
                }
            ],
            "id": "3",
            "requestId": "Req1001",
            "reqStatus": "Request Created",
            "status": "SUCCESS"
        }
    ]
}