Chat Memberships
List of valid attributes:
Attribute | Description | Specifics |
---|---|---|
chat_id | ID of the chat to add users to | Must be provided |
role_ids | List of roles the user should have in chat | Parameter must be provided, Can be empty |
user_id | ID of the user to add to the chat | Must be provided |
Create
Example request:
{ "data": { "type": "chat_membership", "attributes": { "chat_id": "033b586e-5f17-49a8-a420-c4336ba6fc38", "role_ids": [], "user_id": "412cc746-4ace-484a-95f3-f49951ab182f" } }}
Example response:
{ "data": [ { "id": "412cc746-4ace-484a-95f3-f49951ab182f", "type": "user", "attributes": { ... } } ]}
This endpoint connects a user and a chat through roles.
HTTP Request
POST /api/v1/chat_memberships