Deletes the group

delete

/oaa-policy/group/v1/{groupid}

Deletes Group API

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Group is deleted
Body ()
Root Schema : GroupResponse
Type: object
Group response object
Show Source
Nested Schema : schema
Type: object
Defines a new group structure
Show Source
Nested Schema : values
Type: array
Values of elements in the group. Values depend on type of group.
Show Source
Nested Schema : items
Type: object

401 Response

Unauthorized

405 Response

Invalid input
Body ()
Root Schema : GroupResponse
Type: object
Group response object
Show Source
Nested Schema : schema
Type: object
Defines a new group structure
Show Source
Nested Schema : values
Type: array
Values of elements in the group. Values depend on type of group.
Show Source
Nested Schema : items
Type: object

500 Response

Internal server error

503 Response

Service Unavailable
Back to Top

Examples

The following example shows a sample request and response for deleting a group.

cURL Command to Delete a Group in JSON Format

curl --location --request DELETE '<PolicyUrl>/oaa-policy/group/v1/140_b6b25bc75ffae259297e85b5b0a82483bc4e806dd8c7e278a00a134a0474a608' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>'

Sample Response in JSON Format

{
    "status": "200",
    "message": "Group deleted",
    "groupid": "140_b6b25bc75ffae259297e85b5b0a82483bc4e806dd8c7e278a00a134a0474a608",
    "group": {
        "groupid": "140_b6b25bc75ffae259297e85b5b0a82483bc4e806dd8c7e278a00a134a0474a608",
        "agentid": "dede64d3-1d6a-42e9-89e1-714e88f8967c",
        "grouptype": "Actions",
        "groupname": "FactorRuleGrp2",
        "description": "Group to set factors"
    }
}

cURL Command to Delete a Group in XML Format

curl --location --request DELETE '<PolicyUrl>/oaa-policy/group/v1/140_b6b25bc75ffae259297e85b5b0a82483bc4e806dd8c7e278a00a134a0474a608' \
--header 'Content-Type: application/xml' \
--header 'Accept: application/xml' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>'

Sample Response in XML Format

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <GroupResponse>
     <status>200</status>
     <message>Group deleted</message>
     <groupid>140_b6b25bc75ffae259297e85b5b0a82483bc4e806dd8c7e278a00a134a0474a608</groupid>
     <group>
         <groupid>140_b6b25bc75ffae259297e85b5b0a82483bc4e806dd8c7e278a00a134a0474a608</groupid>
         <agentid>dede64d3-1d6a-42e9-89e1-714e88f8967c</agentid>
         <grouptype>Actions</grouptype>
         <groupname>FactorRuleGrp2</groupname>
         <description>Group to set factors</description>
     </group>
 </GroupResponse>
Back to Top