Message-ID: <1872999868.15797.1614958199503.JavaMail.confluence@wiki> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_15796_774676819.1614958199503" ------=_Part_15796_774676819.1614958199503 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html addGroup - PHP

addGroup - PHP

=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20

Create a new 'send' group.

=20
=20
=20
=20
=20
=20
Example
=20
$group =3D $tmClient->addGroup('My Group');
echo "The ID of {$group['name']} is {$group['id']}";
=20
=20
=20
=20
=20
=20
=20

Arguments:

=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20

string $group

=20
=20
=20
=20

the name of the group to be created. Up to 25 alpha-numeric characters, = and '-' are allowed. The name cannot consist of only digits.

=20
=20
=20
=20
=20
=20

Returns

an array with 4 keys: 'name', 'numbers', 'id', 'is_stop'

=20
=20
=20
=20
Array key  Value
name String. The name of the group just created
numbers

Integer. The quantity of numbers in the group= . Always zero.

id Integer. The unique ID of the group.
is_stop

Boolean. Whether the new group is a stop grou= p. Always false.

=20
=20
=20
=20
=20
=20

Specific error codes:

=20
=20
=20
=20
Code

Meaning

1

A group with that name already exists (group = names are not case-sensitive).

2

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

=20 =20

error code 404 is reported if the group does not exist; error code 400 i= s reported if the group name was not specified. See General error codes

=20
=20
=20
=20
=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20
=20
=20
=20
=20

 

=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20
=20

You must know!

=20 =20

Our example code is an illustra= tion of how you might integrate with our systems and is not certified for p= roduction environments. You are responsible for testing and QA.

=20
=20
=20
=20
=20
------=_Part_15796_774676819.1614958199503--