Archive Unarchive
Use this API to archive or unarchive particular user or group chat.
info
{api-base-url}
can be obtained from the MirrorFly console.
#
HTTP request#
Request ParamsParam | DataType | Required | Description |
---|---|---|---|
userId | String | Yes | The username or group ID of the chat that requires archive or unarchiving |
chatType | String | Yes | Type of chat to be archived or unarchived |
action | Integer | YES | action type: 1 for Archive and 0 for Unarchive |
#
ResponsesIf successful, this action returns the response body.
#
ErrorIn the case of an error, an error object like below is returned.
When the token passed in Headers is not given or expired
When try to Archive or Unarchive same current user
When try to Archive or Unarchive already processed chat
In the case of a Bad Request, an error message is returned