Skip to content

Messages

User message

{
  "type": "messages",
  "id": "523f7361-d7a2-410e-8a6c-5af161b4edba",
  "attributes": {
    "date-posted": "2018-08-23T22:11:11+00:00",
    "text": "I have a problem with the TV in my room.",
    "read": true,
    "date-of-reading": "2021-04-12T12:30:28.498004+00:00",
    "type": "message"
  },
  "relationships": {
    "conversation": {
      "data": {
        "type": "conversations",
        "id": "b1178b91-247c-4518-b0c3-b6aec554c9b7"
      }
    }
  }
}

Attributes

Name Description
date-posted date at which message have been posted
text message text
read Flag if message have been read by any venue staff member in the client panel
date-of-reading when the message have been read
type message type (origin)

Relationships

Name Resource
conversation Conversation

Venue staff message (responder-message)

{
  "type": "responder-messages",
  "id": "d1fbbeae-6197-42bc-81f8-be5a49a85483",
  "attributes": {
    "date-posted": "2018-08-23T22:11:12+00:00",
    "text": "We will fix it as soon as possible!",
    "read": false,
    "date-of-reading": null,
    "type": "responder_message"
  },
  "relationships": {
    "conversation": {
      "data": {
        "type": "conversations",
        "id": "b1178b91-247c-4518-b0c3-b6aec554c9b7"
      }
    },
    "account": {
      "data": {
        "type": "accounts",
        "id": "99999999-9999-9999-9999-999999999999"
      }
    }
  }
}

Attributes

Name Description
date-posted date at which message have been posted
text message text
read Flag if message have been read by the user
date-of-reading when the message have been read
type message type (origin)

Relationships

Name Resource
conversation Conversation
account Account