Chat messages
Name | Description |
---|---|
token | token |
tour_id | tour |
chat_message[content] | Chat message content |
chat_message[message_type] | text, status_update, share |
chat_message[metadata][status] | (status_update) |
chat_message[metadata][outcome_success] | (status_update) |
chat_message[metadata][type] | entourage, poi (share) |
chat_message[metadata][uuid] | (share) |
Content-Type: application/json Host: example.org Cookie:
POST /api/v1/tours/10/chat_messages
{"token":"foobar143","chat_message":{"content":"foo"}}
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/"52c7301e4fd0b2e80fdd16d230f75d32" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: b68335df-baf3-4178-9310-a0fd2bc357b1 X-Runtime: 0.017746 Content-Length: 185
201 Created
{ "chat_message": { "id": 11, "content": "foo", "user": { "id": 145, "avatar_url": null, "display_name": "John D.", "partner": null }, "created_at": "2022-06-02T17:16:46.050+02:00", "message_type": "text" } }