Description

Using Revoke User License web service, manager can revoke user license for the organisation. 

Parameters

The following parameters are required in this web service.


organizationId: Defines the Organization Id of an Organization where that user having GenRocket license to be rovoked.

username: Defines a unique username which will gives the existing user to be revoke GenRocket License from organization.


Revoke User License curl command (Example)

curl --insecure -H "accept:application/json" -H "Content-Type:application/json" -H "X-Auth-Token:XXXXXX" -d '{organizationId:  "XXXXXXX-ddc9-481c-adad-XXXXXXXXXXX",username: "abc@email.com"}' https://app.genrocket.com/rest/user/revokeLicense


URL Request

https://app.genrocket.com/rest/user/revokeLicense


Payload Request (Example)

{  
   organizationId:"XXXXXXXXX-ddc9-481c-adad-XXXXXXXXXXXX",
   username:"abc@email.com"
}


Payload OK Response (Example)

{
 "success": true,
  "message": "User with Username abc@email.com is revoked from Organization XYZ Co"
}


Payload Error Response (Example)

{
  "success": false,
  "errors": {
    "error": "Error Message"
  }
}