Files to add to the draft, as the composer’s attach button adds them. Files to send, each uploaded with
supportAttachmentUploadCreate; at most 10 per message, an API limit (the composer has none). Email providers cap the whole message (10 MB custom email, 20 MB Outlook, 25 MB Gmail), which ATTACHMENTS_TOO_LARGE reports. Replies on Instagram DM, Instagram comments, TikTok take none, and on Facebook, Facebook comments one JPEG, PNG or GIF image, as the composer offers (ATTACHMENTS_NOT_SUPPORTED). An upload that is missing, expired, already sent or not the declared type is INVALID_UPLOAD.The body as HTML, in place of
body, as the help desk composer writes it: at most 100,000 characters. It may use only what the composer’s editor writes: the elements <p>, <div>, <span>, <br>, <hr>, <strong>, <b>, <em>, <i>, <u>, <s>, <sub>, <sup>, <small>, <blockquote>, <pre>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <ul>, <ol>, <li>, <a>, <img>, <table>, <thead>, <tbody>, <tr>, <td>, <th>; the attributes class, style, title on any element; href, target, rel on <a>; src, alt, width, height on <img>; data-list on <li>; data-variable on <span>; colspan, rowspan on <td>; colspan, rowspan on <th>; URLs using http, https, mailto (http, https on <img>), absolute only; the CSS properties background-color, border, border-bottom, border-collapse, border-left, border-right, border-top, color, font-family, font-size, font-style, font-weight, height, line-height, margin, margin-bottom, margin-left, margin-right, margin-top, max-height, max-width, padding, padding-bottom, padding-left, padding-right, padding-top, text-align, text-decoration, vertical-align, width, with no url() or other function that loads or runs anything; classes matching ^ql-[\w-]+$. Anything else is refused with BAD_USER_INPUT naming it; HTML comments, a doctype and empty attributes are removed. The plain text is derived from the HTML and must fit body’s limit. Email threads only; another channel is BAD_USER_INPUT.For email threads only; on any other thread it is BAD_USER_INPUT.
The
revision of your draft from SupportTicket.composerDrafts, to replace it; the draft keeps the email it answers. Leave it out to start a draft: on an email thread it answers the customer’s last email. A draft saved, sent or discarded since, a teammate’s draft, or a new draft where one already answers that email, is SUPPORT_DRAFT_REVISION_STALE (409), and nothing is written.Files on the draft
expectedRevision names to take off it, as the composer’s remove does: ids from its attachments. One that isn’t on that draft is BAD_USER_INPUT.An Apple Messages element the draft holds, as the composer’s elements menu adds one, with the draft’s body as its question. Only an Apple Messages thread takes one, and a saved element can’t be drafted: it is resolved when it is sent. Either is RICH_CONTENT_NOT_SUPPORTED. Leave it out to save the draft without one.