Patch Proxies for User Based on User ID
patch
/iam/governance/selfservice/api/v1/users/{uuid}/proxies
The proxies can be added, updated and deleted. The same proxy id cannot be added in the update and the delete sections. Same user can be added as a proxy for different time intervals.
Request
Supported Media Types
- application/json
Path Parameters
-
uuid(required): string
Unique identifier of the User to add, update or delete proxies.
Response
Supported Media Types
- application/json
200 Response
Successful
Headers
-
ResponseTime: string
Captures the time in milliseconds taken for processing the request.
401 Response
Unauthorized
404 Response
Requested entity not found
500 Response
Internal Server Error
Examples
This example demonstrates the ability to add/update/delete a user proxy list. The information shown here is against a pseudo system and serves as a prototype.
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
Example of PATCH Request Body
The following example shows the contents of the request body in JSON format.
{ "user": { "add": [ { "userid": "17", "startDate": "2019-03-19T08:00:00Z", "endDate": "2019-03-19T12:00:00Z" }, { "userid": "17", "startDate": "2019-03-22T08:00:00Z", "endDate": "2019-03-25T12:00:00Z" } ] } }
Example of PATCH Response Body
The following example shows the contents of the response body in JSON format:
{ "user": { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/24/proxies" } ], "add": [ { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/17" } ], "requestId": 0, "id": "3", "userid": "17", "status": "SUCCESS", "description": "NOT_STARTED", "relationship": "MANAGER" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/17" } ], "requestId": 0, "id": "4", "userid": "17", "status": "SUCCESS", "description": "NOT_STARTED", "relationship": "MANAGER" } ] } }