Delete Group
General Information
Service | API | Method |
---|---|---|
urac | /admin/group/delete | DEL |
Data Model: Groups
Workflow: Delete Group Flow
Input
Type: application/json
Name | Source | Mandatory | Type | Special Format | Description |
---|---|---|---|---|---|
gId | Query | YES | String | N/A | The Group ID |
Output
Valid Response
Valid Response Sample
{ "result": true, "data": true }
Invalid Response
Error Response Sample
{ "result":false, "errors":{ "codes":[415], "details":[ { "code":415, "message":"Unable to find group." } ] } }
Error Codes
Code | Description |
---|---|
415 | Unable to find group. |
417 | Invalid group id provided |
419 | Unable to delete Group. |
500 | This record in locked. You cannot modify or delete it |
400 | Database connection error |
Example (CURL)
Request
Calling Delete Group API
> CURL -X DEL http://127.0.0.1:4000/urac/admin/group/delete?gId=5
Response
Delete Group API response
{ "result": true, "data": true }