Examples

PATCH /api/v2/message-groups/25/add-participants
{
  "data": {
    "id": "25",
    "type": "message-groups",
    "attributes": {
      "group-chat": true,
      "chat-room-name": null,
      "updated-at": "2017-08-29 10:51:20 +0800",
      "has-unread-message": false
    },
    "relationships": {
      "accounts": {
        "data": [
          {
            "type": "accounts",
            "id": "1398"
          }
        ]
      }
    }
  }
}
200
{
  "data": {
    "id": "25",
    "type": "message-groups",
    "links": {
      "self": "/api/v2/message-groups/25"
    },
    "attributes": {
      "group-chat": true,
      "chat-room-name": null,
      "updated-at": "2017-08-29T10:51:20.989+08:00",
      "has-unread-message": false
    },
    "relationships": {
      "last-message": {
        "links": {
          "self": "/api/v2/message-groups/25/relationships/last-message",
          "related": "/api/v2/message-groups/25/last-message"
        }
      },
      "accounts": {
        "links": {
          "self": "/api/v2/message-groups/25/relationships/accounts",
          "related": "/api/v2/message-groups/25/accounts"
        }
      },
      "messages": {
        "links": {
          "self": "/api/v2/message-groups/25/relationships/messages",
          "related": "/api/v2/message-groups/25/messages"
        }
      }
    }
  }
}