Update Proxies
Users can update their proxy list via the URI /users/{userid}/proxies PATCH.
cURL Example
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 Request Body
{
"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 Response Body
{
"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"
}
]
}
}