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.

GroupV2
NameDescriptionTypeAdditional 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": "d020bcb6-bc78-4918-b496-2cceef38a96f"
}

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>aabb228a-b71d-4688-a210-cad7e27c9fe6</GroupID>
  <ParentGroupID>d020bcb6-bc78-4918-b496-2cceef38a96f</ParentGroupID>
</GroupV2>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The group details that have been posted.

ResponseOfGroup
NameDescriptionTypeAdditional 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": "14b7db31-8f8f-4262-b41e-983012a1cf4f"
    }
  }
}

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>14b7db31-8f8f-4262-b41e-983012a1cf4f</GroupID>
    </Detail>
  </ResponseData>
</ResponseOfGroup>