v1

latestOpenAPI 3.1.02026-07-24318141.2 MB

Create a Chat Room Membership

post/{id}/memberships/

Path parameters

idstring required

Chat Room ID

Request body

profile_idstring

profile_id field must be null if you want to join the chatroom, if profile_id field is provided then that profile will be added to the chatroom provided the user who is adding is already a member of that chatroom

Response

201

idstring
urlstring
created_atstring

Example response

{
  "id": "26bf2b90-87cc-4e0e-860b-58e6c5e36ec0",
  "url": "https://cf-blast.livelikecdn.com/api/v1/chat-room-memberships/26bf2b90-87cc-4e0e-860b-58e6c5e36ec0/",
  "created_at": "2021-09-16T12:01:48.342229Z",
  "profile": {
    "id": "dfb92c93-6a00-44cf-bb03-09ea52684043",
    "url": "https://cf-blast.livelikecdn.com/api/v1/profiles/dfb92c93-6a00-44cf-bb03-09ea52684043/",
    "created_at": "2021-09-14T07:54:53Z",
    "nickname": "Alpha Dynamo",
    "badges_url": "https://cf-blast.livelikecdn.com/api/v1/profiles/dfb92c93-6a00-44cf-bb03-09ea52684043/badges/",
    "subscribe_channel": "profile.dfb92c93-6a00-44cf-bb03-09ea52684043",
    "chat_room_memberships_url": "https://cf-blast.livelikecdn.com/api/v1/profiles/dfb92c93-6a00-44cf-bb03-09ea52684043/chat-room-memberships/"
  }
}