Delete a User Group
This API is used to delete a user group.
Before you begin
- Ensure that the session ID is valid and has not expired.
- Make sure you have valid user group name to be deleted.
Request Structure
| Endpoint: | /userGroup |
| Type: | DELETE |
| Sample URL: | https://<IP/HostName/TenantName>:<GWPORT>/avxapi/userGroup?userGroupName=
group_1;gwsource=externalTo understand the elements of the sample URL, click here. |
| Headers: | |
| Content-Type: | application/json |
| Name | Description |
|---|---|
| sessionId (or) Token
|
(Mandatory) Use either Session Id or Token received after
login. Type: String Example: "sessionId": "ce7f1a14-2bf9-4e4a-89a8-bc780a255813" |
| gwsource
|
(Mandatory) Source from which the request is triggered. The values
can be:
Type: String |
| userGroupName
|
(Mandatory) Name of the user group to be deleted. Type: String Example: "group_1" |
Response Structure
- Status Code: 200 OK
- Message: UserGroup deleted successfully.
- Headers:
- Content-Type: application/json
| Name | Description |
|---|---|
| response | Contains the response attributes for user group deleted successfully. |
| message | Success message or failure description in case of error. |
| appStatusCode | Application specific status code for the response. Will be non-null for failure response. |
| tags | More info in case of failure response. |
Status Codes
| HTTP Code | appStatusCode | Response Message |
|---|---|---|
| 200 OK | null | UserGroup deleted successfully. |
| 404 Not Found | ACCT_USERGROUP_030 | UserGroup doesnot exist. |
| 403 Forbidden | AVX_GW_005 | User does not have access to the targeted API |
| 400 Bad request | RBAC_US_019 | Usergroup(s) which have active user(s) cannot be deleted |
| 405 Method Not Allowed | RBAC_US_015 | Admin usergroup cannot be deleted |
Sample Request/Response
Add a user group with the name group_1.
https://<IP/HostName/TenantName>:<GWPORT>/avxapi/userGroup?userGroupName= group_1;gwsource=externalNA {
"response": "UserGroup deleted successfully",
"message": "UserGroup deleted successfully",
"appStatusCode": null,
"tags": null,
"headers": null
} Reference
- IP/HostName/TenantName: Replace with the actual IP address, hostname,
or tenant name based on the specific configuration in AppViewX.
- IP: A unique identifier assigned to each device connected to
a computer network that uses the Internet Protocol for communication
The IP address will be included in the endpoint URL for an on-prem deployment.
- HostName: A human-readable label assigned to a device (host)
on a network
The hostname will be included in the endpoint URL for an on-prem deployment.
- TenantName: An identifier label for a tenant given to
indicate which tenant's data the API request will
access/modify
The tenant name will be included in the endpoint URL for a SaaS deployment.
- IP: A unique identifier assigned to each device connected to
a computer network that uses the Internet Protocol for communication
- GWPORT: AppViewX gateway port
A gateway port refers to a network port through which data is sent and received to communicate with a gateway in an on-prem deployment.
Example: 31443
- avxapi: Path parameter value (static) that is part of the endpoint's URL
- Endpoint: Endpoint of the API, for example: execute-hook
- gwsource: Source or origin of a gateway, for example: external.
