Toloka documentation

add_message_thread_to_folders

toloka.client.TolokaClient.add_message_thread_to_folders | Source code

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

Adds a message chain to 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 to move chain.

  • Returns:

    Full object by ID with updated folders.

  • Return type:

    MessageThread

Examples:

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