I think the put /mailbox/mailThreads/{id} endpoint has a bug.
I wrote a script that has been in use for about 6 months. It looks up deals and attaches a given mail thread to the appropriate deal. The script has worked as expected until recently. The endpoint is still returning 200, but the emails are not actually getting attached to deals. I’ve even tried using the endpoint tester in the API reference. It also returns 200 but doesn’t actually update the deal_id of the mailThread.
I’ve checked the API documentation and do not see any changes to the API that would cause this issue. Please help
I just tested again in the API endpoint tester.
// JSON in the request object
{
“deal_id”: “446”,
“archived_flag”: “0”
}
// Response JSON
{
“data”: {
“id”: 79247,
“folders”: [
“inbox”
],
“account_id”: “4pdfg0r5p903sc45u63k2llk8”,
“user_id”: 1547158,
“version”: 79,
“subject”: “foo bar”,
“snippet”: “foo bar”,
“snippet_draft”: null,
“snippet_sent”: “”,
“message_count”: 18,
“read_flag”: 1,
“mail_tracking_status”: null,
“has_attachments_flag”: 1,
“has_inline_attachments_flag”: 0,
“has_real_attachments_flag”: 1,
“has_draft_flag”: 0,
“has_sent_flag”: 0,
“archived_flag”: 0,
“deleted_flag”: 0,
“shared_flag”: 0,
“synced_flag”: 1,
“external_deleted_flag”: 0,
“smart_bcc_flag”: 0,
“first_message_to_me_flag”: 0,
“mail_link_tracking_enabled_flag”: 0,
“last_message_timestamp”: “2017-11-22T02:30:56.000Z”,
“first_message_timestamp”: “2017-11-15T05:59:46.000Z”,
“last_message_sent_timestamp”: null,
“last_message_received_timestamp”: “2017-11-22T02:30:56.000Z”,
“add_time”: “2017-11-15T06:00:05.000Z”,
“update_time”: “2017-11-22T02:42:43.000Z”,
"deal_id": null,
“deal_status”: null,
“write_flag”: false
},
“success”: true,
“statusCode”: 2000,
“statusText”: “Success”,
“service”: “email-api”
}