Chat messages
Name | Description |
---|---|
token | token |
neighborhood_id | neighborhood |
chat_message[content] | content is optional whenever image_url is defined |
chat_message[image_url] | Chat message image url |
chat_message[parent_id] | parent chat_message id |
Content-Type: application/json Host: example.org Cookie:
POST /api/v1/neighborhoods/3/chat_messages
{"token":"foobar88","chat_message":{"content":"foo","parent_id":null}}
X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-Download-Options: noopen X-Permitted-Cross-Domain-Policies: none Referrer-Policy: strict-origin-when-cross-origin Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET,POST,PUT,PATCH,DELETE Access-Control-Allow-Headers: Origin,Accept,Content-Type,X-Requested-With,X-CSRF-Token,X-API-KEY Content-Type: application/json; charset=utf-8 ETag: W/"8f0461554292a01e58a5e1d3b1462e57" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 8038fa6b-34d2-4dc6-909e-297e2f7121e3 X-Runtime: 0.023486 Content-Length: 267
201 Created
{ "chat_message": { "id": 6, "content": "foo", "user": { "id": 90, "avatar_url": null, "display_name": "John D.", "partner": null }, "created_at": "2022-06-02T17:16:44.656+02:00", "message_type": "text", "post_id": null, "has_comments": false, "comments_count": 0, "image_url": null, "read": null } }