MPZ API > Add a Group

Use the API to add a new subscriber group.

Request

Submit an XML Request with the following details:
Post URL: https://mpzmail.com/api/v3.0/groups/addGroup/
Fields to Post
apiKey String REQUIRED The APIKey of the requesting user.
groupName String REQUIRED The name of the new group you would like to create.

Response

Data Sent Back
error Int Indicated wether an error has occured. 0 for no error. 1 for error.
status String If there's been an error, a text description of the error that occured will be here.
groupID String If successful you will receive the ID of the new group.

Sample request XML

<xml>
     <apiKey>44-121312131223</apiKey>
     <groupName>My New Group</groupName>
</xml>

Sample response XML

<xml>
     <error>0</error>
     <status>Success</status>
     <groupID>1234</groupID>
</xml>

Comments