Examples

PATCH /api/v2/message-groups/37/leave
{}
200
{
  "data": {
    "id": "37",
    "type": "message-groups",
    "links": {
      "self": "/api/v2/message-groups/37"
    },
    "attributes": {
      "group-chat": true,
      "chat-room-name": null,
      "updated-at": "2017-08-29T10:51:29.417+08:00",
      "has-unread-message": false
    },
    "relationships": {
      "last-message": {
        "links": {
          "self": "/api/v2/message-groups/37/relationships/last-message",
          "related": "/api/v2/message-groups/37/last-message"
        }
      },
      "accounts": {
        "links": {
          "self": "/api/v2/message-groups/37/relationships/accounts",
          "related": "/api/v2/message-groups/37/accounts"
        }
      },
      "messages": {
        "links": {
          "self": "/api/v2/message-groups/37/relationships/messages",
          "related": "/api/v2/message-groups/37/messages"
        }
      }
    }
  }
}