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"  -X PATCH  -u username:password  -d @patch.json https://pseudo.com/iam/governance/selfservice/api/v1/users/1/proxies

Example of PATCH Request Body

The following example shows the contents of the request body in JSON format.

{
  "user": {
    "add": [
      {
        "requestId": 1,
        "userid": "1005",
        "startDate": "5/28/2016",
        "endDate": "5/28/2016"
      },
      {
        "requestId": 2,
        "userid": "1005",
        "startDate": "5/29/2016",
        "endDate": "5/29/2016"
      }
    ]
  }
}

Example of PATCH Response Body

The following example shows the contents of the response body in JSON format:

{
  "add": [
    {
      "links": [
        {
          "rel": "self",
          "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/1005"
        }
      ],
      "requestId": 1,
      "id": "251",
      "userid": "1005",
      "status": "Success"
    },
    {
      "links": [
        {
          "rel": "self",
          "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/1005"
        }
      ],
      "requestId": 2,
      "id": "252",
      "userid": "1005",
      "status": "Success"
    }
  ]
}
Back to Top