Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Create a new group.

If no errors are returned, the response is the same as the group GET method; obviously no numbers will be listed since it will be an empty group.

Specific errors:

Code Meaning
0DEPRECATED – status code 400 (bad request) is returned instead.
1A group with that name already exists (group names are not case-sensitive).
2

The group name is invalid. Only up to 25 alpha-numeric characters, and '-' are allowed. The name cannot consist of only digits, at least one alpha character or '-' must be present.

Note

that a 404 status code is returned if the group specified does not exist; 400 is returned if the group name was not specified.

DTD:

Code Block
themeRDark
languagexml
linenumberstrue
<?xml version="1.0" encoding="UTF-8"?>
<!--
 PUBLIC ID : -//textmarketer.co.uk//DTD Web Services REST 1.6//EN
 SYSTEM ID : http://api.textmarketer.co.uk/services/rest/DTD/group_get.dtd
-->
<!ELEMENT response (group)>
<!ATTLIST response
 	processed_date CDATA #REQUIRED
>
<!ELEMENT group (number*) >
<!ATTLIST group
	name CDATA #REQUIRED
 	numbers CDATA #REQUIRED
 	id CDATA #REQUIRED
 	is_stop CDATA #REQUIRED
>
<!ELEMENT number (#PCDATA) >