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": "1e70614b-61f7-4555-aadd-56f797916ae6" }
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>f125b835-8825-4054-adda-466b7664065e</GroupID> <ParentGroupID>1e70614b-61f7-4555-aadd-56f797916ae6</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": "1a5722f5-2b9f-448b-b9c0-8ce6d847236f" } } }
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>1a5722f5-2b9f-448b-b9c0-8ce6d847236f</GroupID> </Detail> </ResponseData> </ResponseOfGroup>