POST
/
me
/
groups
/
{group}
/
members
curl --request POST \
  --url https://api.rownd.io/me/groups/{group}/members \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user_id": "user_fbylaq38591cghym5pabupj2",
  "roles": [
    "owner",
    "editor"
  ],
  "state": "active"
}'
{
  "id": "member_dnn5g4e3q6aptail2gr43kpj",
  "user_id": "user_fbylaq38591cghym5pabupj2",
  "roles": [
    "owner",
    "editor"
  ],
  "state": "active",
  "invited_by": "<string>",
  "added_by": "<string>",
  "profile": {
    "user_id": "user_a7b53gwdaml5jt7t71442nt7",
    "email": "gary@foo.com",
    "first_name": "Gary",
    "last_name": "Jackson"
  },
  "group_id": "group_ig42thhwf4cig25o7t9jtlyu"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token> where <token> is the user's Rownd JWT

Path Parameters

group
string
required

Group ID

Body

application/json

Response

200 - application/json
Group member created successfully

The response is of type object.