Toloka documentation

remove_message_thread_from_folders

toloka.client.TolokaClient.remove_message_thread_from_folders | Source code

remove_message_thread_from_folders(
    self,
    message_thread_id: str,
    folders: Union[List[Folder], MessageThreadFolders]
)

Deletes a message chain from one or more folders ("unread", "important" etc.)

Parameters Description

Parameters Type Description
message_thread_id str

ID of message chain.

folders Union[List[Folder], MessageThreadFolders]

List of folders, where from to remove chain.

  • Returns:

    Full object by ID with updated folders.

  • Return type:

    MessageThread

Examples:

toloka_client.remove_message_thread_from_folders(message_thread_id='1', folders=['IMPORTANT'])