...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "data" : { "email" : "e@e.com", "facilityId" : "UNC", "facilityName" : "UNC", "firstName" : "e", "id" : "354a7aae-ac06-4892-ac61-ce302351eb35", "lastName" : "e", "organizationId" : "UNC", "organizationName" : "UNC", "roleId" : 2, "roleName" : "pod", "status" : "SUSPENDED", "updateDate" : "Wed May 14 13:24:38 CEST 2014" }, "statusFact" : { "success" : true } } |
Delete User
Current Implementation
This is a DELETE method. Modifies user status to INACTIVE.
The final result is the same as using the Update User Information operation using INACTIVE as the new status.
Parameters
Base URL: /users/{requestedUserId}
Parameters:
Name | Type | Mandatory | Description |
---|---|---|---|
{requestedUserId} | String | Yes | The id of the requested user. |
token | String | Yes | Security Token obtained before. |
userId | String | Yes | The id of the logged in user. |
API Sample
curl -X DELETE 'http://192.168.2.103:8080/PresentationServices/users/354a7aae-ac06-4892-ac61-ce302351eb35' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Origin: file://' -H 'User-Agent: Mozilla/5.0 (Linux; Android 4.4.2; Nexus 5 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' --compressed
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "statusFact" : { "success" : true }} |