Add

  • POST
  • /workspaces
  • /:domain
  • /groups
  • /:group_id
  • /members

Adds a user to the group.

Request

REQUIRED SCOPES
WORKSPACE
URL PARAMETERS
domainrequired string
The workspace domain.
group_idrequired integer
The numerical ID of the desired group.
POST PARAMETERS
idrequired integer
The numerical ID of the desired user.
group_idrequired string
Group member status. Can be one of MEMBER, MANAGER. Default: MEMBER.

Last modified on Sep 27, 2024

Example:

curl -X POST "https://api.buddy.works/workspaces/:domain/groups/:group_id/members" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
  "id": 1,
  "status": "MANAGER"
}'
EXAMPLE RESPONSE
{ "url": "https://api.buddy.works/workspaces/buddy/groups/1/members/1", "html_url": "https://app.buddy.works/buddy/profile/1", "id": 1, "name": "Mike Benson", "avatar_url": "https://app.buddy.works/image-server/user/0/0/0/0/0/0/1/d643744fbe5ebf2906a4d075a5b97110/w/32/32/AVATAR.png", "admin": true, "workspace_owner": true, "status": "MANAGER" }
STATUS
201 Created
LIMITS
X-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999