カートの追加
URI /requests PUTまたはPOSTを含むリクエストを作成すると、項目がカートに追加されます。
cURLの例: 別のユーザーのロールのリクエスト
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リクエスト本文
{
"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レスポンス本文
{
"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"
}
]
}