Patch Role End Dates

patch

/iam/governance/selfservice/api/v1/roles/{roleid}/members

Update one or more user(s) with specified role's endDate. The logged in user should have the necessary privileges to perform the modify action.

Request

Supported Media Types
Path Parameters
Body ()
User's role end date to be updated.
Root Schema : RoleEndDatePatchRequest
Type: object
Show Source
Nested Schema : update
Type: array
Show Source
Nested Schema : UpdateRoleEndDateRequest
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful
Headers
Body ()
Root Schema : RoleEndDatePatchResponse
Type: object
Show Source
Nested Schema : LinkDataInstances
Type: object
Show Source

401 Response

Unauthorized

404 Response

Requested entity not found

500 Response

Internal Server Error
Back to Top

Examples

cURL Example

This example demonstrates the ability to patch multiple users with a single request. The information shown here is against a pseudo system and serves as a prototype.

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/roles/8/members

Example of PATCH Request Body

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

{
   	"update" : [
        	{
   		  "userId": "82",
    		  "endDate": "2022-07-20T12:12:12Z"
        	 }
   	]
 }

Example of PATCH Response Body

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

{
    "links": [
        {
            "rel": "self",
            "href": "https://pseudo.com/iam/governance/selfservice/api/v1/roles/8/members"
        }
    ],
    "status": "SUCCESS"
}
Back to Top