Adds a member to a working group. If the user is already a member of the group, nothing happens. This endpoint can be used for adding someone else to a working group if you are allowed to edit that group or for joining a group if you allowed to do so.
POST
/api/groups/{groupId}/members/{memberId}Authorizations
api_key
Type: API Key (header: X-CSRF-Token)
Parameters
Path Parameters
groupId*
Typestring
RequiredmemberId*
Typestring
RequiredResponses
Success
JSON
{
"id": 0,
"name": "string",
"avatar": "string",
"isSleeping": true
}
Authorization
api_key
Variables
Key
Value
groupId*
memberId*
cURL
curl -X POST \
'http://localhost/api/groups/{groupId}/members/{memberId}'
Samples
cURL
curl -X POST http://localhost/api/groups/{groupId}/members/{memberId}
JavaScript
fetch("http://localhost/api/groups/{groupId}/members/{memberId}", { method: "POST" })
.then(response => response.json())
.then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://localhost/api/groups/{groupId}/members/{memberId}");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.post("http://localhost/api/groups/{groupId}/members/{memberId}")
print(response.json())