These docs are for v0.1.0. Click to read the latest docs for v1.0.0.

Front.updateDraft(draft_id, options, callback)

Updates the draft of the conversation. You can get the draft_id by calling the fetchDraft method, which can be found here.

options: object

Field NameTypeDescription
recipients (optional)ObjectAn object of recipients (to, cc, bcc) containing an array of recipients for each field. If present, will replace all the recipients.
attachment_uids (optional)Integer arrayAn array of attachment UIDs to attach to the draft. UIDs can be found in the messages of the current selected conversation (UIDs not found in the conversation will be ignored). If present, will replace all the attachments.
Front.updateDraft(draft_id, {
    recipients: {
        to: ['[email protected]'],
        cc: [],
        bcc: []
    },
    attachment_uids: []
}, callback);