POST api/v2/addressbook/groups
This method creates an empty group for the user to add contacts to. The system will check that the name of the group is not already present for that account. This can also be a sub group for any other group that you own.
Request Information
URI Parameters
None.
Body Parameters
Either xml or json request.
GroupV2Name | Description | Type | Additional information |
---|---|---|---|
GroupName |
The name of the group. |
string |
Required |
ParentGroupID |
SMS+ Parent Group ID |
globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "GroupName": "sample string 1", "ParentGroupID": "a2c05a1f-d387-4f8e-a1ea-da08231e0e38" }
application/xml, text/xml
Sample:
<GroupV2 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <GroupName>sample string 1</GroupName> <GroupID>f7a5e31d-2dee-4f73-ae75-c938ab6b25d8</GroupID> <ParentGroupID>a2c05a1f-d387-4f8e-a1ea-da08231e0e38</ParentGroupID> </GroupV2>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
The group details that have been posted.
ResponseOfGroupName | Description | Type | Additional information |
---|---|---|---|
Error | Error |
None. |
|
ResponseData | ResponseDataOfGroup |
None. |
Response Formats
application/json, text/json
Sample:
{ "Error": { "ErrorCode": "sample string 1", "ErrorReason": "sample string 2" }, "ResponseData": { "Identification": { "UserId": "sample string 1" }, "Result": "sample string 1", "Detail": { "GroupName": "sample string 1", "GroupID": "4c29517d-ed2c-4c5b-9bcf-31cd9cf92e00" } } }
application/xml, text/xml
Sample:
<ResponseOfGroup xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Error> <ErrorCode>sample string 1</ErrorCode> <ErrorReason>sample string 2</ErrorReason> </Error> <ResponseData> <Result>sample string 1</Result> <Identification> <UserId>sample string 1</UserId> </Identification> <Detail> <GroupName>sample string 1</GroupName> <GroupID>4c29517d-ed2c-4c5b-9bcf-31cd9cf92e00</GroupID> </Detail> </ResponseData> </ResponseOfGroup>