Skip to main content
POST
/
api
/
v2
/
Group
/
{Id}
/
SubGroup
{
  "ErrorCode": 123,
  "ErrorDescription": "<string>",
  "Data": "<string>"
}

Create Sub-Group

Create a sub-group under an existing parent group for hierarchical organization.
curl -X POST "https://accounts.netvox.ng/api/v2/Group/33/SubGroup" \
  -H "Content-Type: application/json" \
  -d '{
    "GroupName": "Sub Group Name",
    "ApiKey": "YOUR_API_KEY",
    "ClientId": "YOUR_CLIENT_ID"
  }'

Path Parameters

Id
number
required
ID of the parent group

Request Body

GroupName
string
required
Name for the new sub-group
ApiKey
string
required
Your API key for authentication
ClientId
string
required
Your client identifier for authentication

Response

ErrorCode
number
Error code (0 for success)
ErrorDescription
string
Description of the result
Data
string
Success message

Success Response

{
  "ErrorCode": 0,
  "ErrorDescription": "Success",
  "Data": "success#New Group added successfully."
}

Use Cases

  • Hierarchical organization: Create nested group structures
  • Department organization: Organize contacts by departments and teams
  • Geographic grouping: Create location-based sub-groups
  • Campaign segmentation: Create targeted sub-groups for specific campaigns