プロキシの更新
ユーザーは、URI /users/{userid}/proxies PATCHを介してプロキシ・リストを更新できます。
cURLの例
curl -H "Content-Type: application/json" -H "X-Requested-By: <anyvalue>" -X PATCH -u username:password -d @patch.json https://pseudo.com/iam/governance/selfservice/api/v1/users/24/proxies
PATCHリクエスト本文
{
"user": {
"add": [
{
"userid": "17",
"startDate": "2019-08-19T08:00:00Z",
"endDate": "2019-08-21T12:00:00Z"
},
{
"userid": "17",
"startDate": "2019-09-22T08:00:00Z",
"endDate": "2019-09-25T12:00:00Z"
}
]
}
}
PATCHレスポンス本文
{
"user": {
"links": [
{
"rel": "self",
"href": "https://pseudo.com/iam/governance/selfservice/api/v1/users/24/proxies"
}
],
"add": [
{
"links": [
{
"rel": "self",
"href": "https://pseudo.com/iam/governance/selfservice/api/v1/users/17"
}
],
"requestId": 0,
"id": "4",
"userid": "17",
"status": "SUCCESS",
"description": "NOT_STARTED",
"relationship": "MANAGER"
},
{
"links": [
{
"rel": "self",
"href": "https://pseudo.com/iam/governance/selfservice/api/v1/users/17"
}
],
"requestId": 0,
"id": "5",
"userid": "17",
"status": "SUCCESS",
"description": "NOT_STARTED",
"relationship": "MANAGER"
}
]
}
}