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": "b464eb11-94fd-4f32-8e70-0175222c31ed"
}

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>12b8fcde-32d7-4215-bfdf-2d9be91d8bbf</GroupID>
  <ParentGroupID>b464eb11-94fd-4f32-8e70-0175222c31ed</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": "7cdcd9ac-d17e-4f1c-8167-06df1a634dbf"
    }
  }
}

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>7cdcd9ac-d17e-4f1c-8167-06df1a634dbf</GroupID>
    </Detail>
  </ResponseData>
</ResponseOfGroup>