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.
Adds a message thread to a folder.
POST https://toloka.dev/api/v1/message-threads/<thread_id>/add-to-foldersAuthorization: OAuth <OAuth token>Content-Type: application/JSON
Deletes a message thread from a folder.
POST https://toloka.dev/api/v1/message-threads/<thread_id>/remove-from-foldersAuthorization: OAuth <OAuth token>Content-Type: application/JSON
Parameter | Overview |
---|---|
thread_id | Message thread ID. |
Title | Overview |
---|---|
Authorization | A token for account authorization. Add OAuth as a prefix. |
Content-Type | Specifies the data format in the request body. |
{ "folders": ["UNREAD", "IMPORTANT"]}
Parameter | Overview |
---|---|
folders | array of strings Folders to add a message thread to or remove a message thread from. |