Move a message thread

Attention

The toloka.yandex.com domain will be disabled starting April 1, 2023. Please use the toloka.dev domain for API requests.

Adds or removes a message thread from a folder.

Message threads located in the UNREAD folder are marked as unread in the interface.

Message threads located in the IMPORTANT folder are marked as important in the interface.

Request

To add to a folder

Adds a message thread to a folder.

Production version
Sandbox
POST https://toloka.dev/api/v1/message-threads/<thread_id>/add-to-folders
Authorization: OAuth <OAuth token>
Content-Type: application/JSON

Remove from a folder

Deletes a message thread from a folder.

Production version
Sandbox
POST https://toloka.dev/api/v1/message-threads/<thread_id>/remove-from-folders
Authorization: OAuth <OAuth token>
Content-Type: application/JSON

Path parameters

ParameterOverview
thread_idMessage thread ID.

Headers

TitleOverview
AuthorizationA token for account authorization. Add OAuth as a prefix.
Content-TypeSpecifies the data format in the request body.

Request body

{
"folders": ["UNREAD", "IMPORTANT"]
}
ParameterOverview
foldersarray of strings

Folders to add a message thread to or remove a message thread from.
Contact support
Toloka API
OverviewAccessing the APIRate limiting
Quick start
Reference
Project
Pools
Training
Subscriptions to events
Toloker selection
Ways to upload tasks
Tasks
Task suites
Tracking operations
Getting responses
Checking completed tasks
Rewards
Messages for Tolokers
Various parameters
Libraries