Invite chat room members
POST
/chat-rooms/:id/membersInvite users to a chat room. Invitees enter the INVITED state and can join or decline. Only members in the JOINED state can invite.
| Auth | Login required |
|---|
Path parameters
idstringrequiredChat room ID.
Request body
userIdsstring[]requiredUser 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": "山田" }}]}