Adding a User to a Group

You can add a user to a group by sending the POST request to the following URL: /group/<group_id>/member.

Request Headers

Parameter Description
X-Auth-Account-Url (required) Base URL of the account, e.g.
X-Auth-Email (required) Administrator/Publisher e-mail address.
X-Auth-Password (required) Administrator/Publisher password.
X-User-Id (required) ID of the user, whom you want to add to the specified group.

After the request has been completed, the system returns the response with Code 201.

Possible Response Codes

Code Text Description
400 Bad Request The system failed to process the request, because it did not contain all necessary parameters.
403 User already group's member A given user already belongs to the specified group.
403 Group membership is exceeded The number of users supported by this group has been exceeded.
404 Unknown user The specified user hasn't been found.
404 Unknown group The specified group hasn't been found.
201 Created A given user has been added to the specified group.

Sample Request

POST /group/1/members HTTP/1.1
X-Auth-Password: password
X-User-Id: 1

Sample Response

HTTP/1.1 201 Created
Server: nginx
Connection: close