Invite chat room members

POST/chat-rooms/:id/members

Invite users to a chat room. Invitees enter the INVITED state and can join or decline. Only members in the JOINED state can invite.

AuthLogin required

Path parameters

idstringrequired

Chat room ID.

Request body

userIdsstring[]required

User IDs to invite (required); at least one.

Request
curl https://api.4s.link/chat-rooms/ID/members \
-X POST \
-H "Authorization: Bearer 4s_at_..." \
-H "Content-Type: application/json" \
-d '{
"userIds": ["a1b2c3d4-...", "b2c3d4e5-..."]
}'
Example response
{
"members": [
{
"id": "rm2b3c4-...",
"status": "INVITED",
"user": { "id": "a1b2c3d4-...", "firstName": "太郎", "lastName": "山田" }
}
]
}