Patch the 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
Path Parameters
  • Unique identifier of the User to add, update or delete proxies.
Body ()
Root Schema : UserProxiesPatchRequest
Type: object
Show Source
Nested Schema : PatchUsersProxiesRequestInner
Type: object
Show Source
Nested Schema : add
Type: array
Show Source
Nested Schema : delete
Type: array
Show Source
Nested Schema : update
Type: array
Show Source
Nested Schema : AddUserProxyRequest
Type: object
Show Source
Nested Schema : DeleteUserProxyRequest
Type: object
Show Source
Nested Schema : UpdateUserProxyRequest
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful
Headers
Body ()
Root Schema : PatchUsersProxiesResponse
Type: object
Show Source
Nested Schema : PatchUsersProxiesResponseInner
Type: object
Show Source
Nested Schema : add
Type: array
Show Source
Nested Schema : delete
Type: array
Show Source
Nested Schema : update
Type: array
Show Source
Nested Schema : AddUpdateUserProxyResponse
Type: object
Show Source
Nested Schema : LinkDataInstances
Type: object
Show Source
Nested Schema : DeleteUserProxyResponse
Type: object
Show Source

401 Response

Unauthorized

404 Response

Requested entity not found

500 Response

Internal Server Error
Back to Top

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"
            }
        ]
    }
}
Back to Top