add-member action endpoint
URL: /groups/<id>/add-member.<format>
This action endpoint allows an application to add a user as a member of a group that belongs to that application.
For this call to succeed, all of the following must be true:
- The userId in the request must match the user whose OAuth token is making this request.
- The selected group must belong to the application whose OAuth token is making this request.
Supported Methods
| POST | Add a given user as a member of the selected group. |
POST Request Object Type
This endpoint accepts the following properties in POST requests:
- userId (string)
- (Required) The urlId of the user who is being added.
Client Library Methods for PHP
- Add a given user as a member of the selected group.
$tp->groups->addMember(array( # Required Parameters "id" => $id, "payload" => $payload, ))