You can add a user to a group by sending the POST request to the following URL: /group/<group_id>/member.
|X-Auth-Account-Url (required)||Base URL of the account, e.g. http://myaccount.ispringlearn.com|
|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
|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.|
POST /group/1/members HTTP/1.1
HTTP/1.1 201 Created