Conversation / Unfavorite

The conversation api is used for updating the content displayed in a conversation, the conversation unfavorite action is used for selecting users to be removed from the special group "favourites" that are kept at the top of the chat list. On success, it will return conversation with the selected user.

Unfavorite request

Method: POST
URL: ?srv=chatserver&api=chatconversation
Request headers: Content-Type: application/json Ozeki-Signature: signature Ozeki-Station: stationId Ozeki-User: userId
POST data:
{
  "action": "unfavorite",
  "conversationid": "8ca16186c36a4e0a1ef2096e6c60b613",
  "clientversioncode": 3,
  "timestamp": "2024-03-11 07:25:52"
}

Unfavorite response

Response headers Content-Type: application/json
Response data:
{
  "status": "OK",
  "errormessage": "",
  "conversation": {
    "id": "8ca16186c36a4e0a1ef2096e6c60b613",
    "isgroup": false,
    "participantids": [
      "aa68d2204cb2bb85f2de3b9aad0d86d7",
      "d574638619cbff603bf857164c47e850"
    ],
    "participants": [
      {
        "userid": "aa68d2204cb2bb85f2de3b9aad0d86d7",
        "username": "Alice"
      },
      {
        "userid": "d574638619cbff603bf857164c47e850",
        "username": "Administrator"
      }
    ],
    "displayname": "IFM...rg==",
    "lastmessageid": "470fa27b-7ecb-4cde-9b49-173c0fca14cb",
    "lastreportid": "d3efea25d6052a7ffad236aba38f5384",
    "lastaccess": 1710141826,
    "secret": "ldD...==",
    "instance": "ZTZqIV8LS5",
    "mutedby": [],
    "favoriteby": [],
    "hiddenby": [],
    "properties": [
      {
        "userid": "d574638619cbff603bf857164c47e850",
        "ismuted": false,
        "isfavorite": false,
        "hideid": "",
        "listitembackgroundcolor": "#ffffff"
      }
    ]
  }
}

More information