> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SupportComposerDraftSaveInput

> Your composer draft on one of the ticket's threads.

**attachments** `[\[SupportAttachmentInput!\]](/docs/api-reference/v3/reference/support/support-attachment-input)`

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.

**fields**

**contentType** `String!` *required*

The file's MIME type, such as application/pdf or image/png. A PNG, JPEG, GIF or PDF must be declared as what it is.

**filename** `String!` *required*

The file's name as the customer sees it, 1 to 255 characters, with no control characters.

**uploadId** `String!` *required*

The uploadId `supportAttachmentUploadCreate` returned.

**body** `String`

Plain text: 1 to 10,000 characters, and not only whitespace. Pass this or bodyHtml.

**bodyHtml** `String`

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.

**email** `[SupportComposerDraftEmailInput](/docs/api-reference/v3/reference/support/support-composer-draft-email-input)`

For email threads only; on any other thread it is BAD\_USER\_INPUT.

**fields**

**bcc** `[String!]`

Addresses to blind copy. At most 20 across cc and bcc, each once, ignoring case. The store's own inboxes are left off.

**cc** `[String!]`

Addresses to copy. At most 20 across cc and bcc, each once, ignoring case. The store's own inboxes are left off.

**replyAll** `Boolean`

Also to everyone on the email the draft answers, like Reply all. Defaults to false.

**signature** `Boolean`

Append the store's team member email signature to the draft's HTML, as the composer does, as `supportTicketReply`'s `email.signature` does. Defaults to false.

**expectedRevision** `String`

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.

**removeAttachmentIds** `[ID!]`

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.

**richContent** `[SupportRichContentInput](/docs/api-reference/v3/reference/support/support-rich-content-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.

**fields**

**appExtensionRequest** `[SupportRichContentAppExtensionRequestInput](/docs/api-reference/v3/reference/support/support-rich-content-app-extension-request-input)`

An App Extension request.

**fields**

**bubble** `[SupportRichContentBubbleInput](/docs/api-reference/v3/reference/support/support-rich-content-bubble-input)`

The bubble's own lines.

**title** `String!` *required*

One line, at most 60 characters.

**applePayRequest** `[SupportRichContentApplePayRequestInput](/docs/api-reference/v3/reference/support/support-rich-content-apple-pay-request-input)`

An Apple Pay request.

**fields**

**bubble** `[SupportRichContentBubbleInput](/docs/api-reference/v3/reference/support/support-rich-content-bubble-input)`

The bubble's own lines.

**countryCode** `[CountryCode!](/docs/api-reference/v3/reference/common/country-code)` *required*

The country the payment is processed in.

**currencyCode** `String!` *required*

The ISO 4217 code of the amounts, in capitals, such as USD.

**lineItems** `[\[SupportRichContentApplePayItemInput!\]!](/docs/api-reference/v3/reference/support/support-rich-content-apple-pay-item-input)` *required*

1 to 20 lines.

**merchantName** `String!` *required*

The brand's own Apple Pay name, as the composer fills it. One line, at most 64 characters. Another name is RICH\_CONTENT\_NOT\_SUPPORTED.

**shippingMethods** `[\[SupportRichContentApplePayShippingMethodInput!\]](/docs/api-reference/v3/reference/support/support-rich-content-apple-pay-shipping-method-input)`

The shipping methods to offer.

**total** `[SupportRichContentApplePayItemInput!](/docs/api-reference/v3/reference/support/support-rich-content-apple-pay-item-input)` *required*

More than zero and exactly the lines' sum, labeled with `merchantName`.

**form** `[SupportRichContentFormInput](/docs/api-reference/v3/reference/support/support-rich-content-form-input)`

A Form.

**fields**

**bubble** `[SupportRichContentBubbleInput](/docs/api-reference/v3/reference/support/support-rich-content-bubble-input)`

The bubble's own lines.

**questions** `[\[SupportRichContentFormQuestionInput!\]!](/docs/api-reference/v3/reference/support/support-rich-content-form-question-input)` *required*

1 to 7 questions.

**title** `String!` *required*

One line, at most 60 characters.

**listPicker** `[SupportRichContentListPickerInput](/docs/api-reference/v3/reference/support/support-rich-content-list-picker-input)`

A List Picker.

**fields**

**bubble** `[SupportRichContentBubbleInput](/docs/api-reference/v3/reference/support/support-rich-content-bubble-input)`

The bubble's own lines.

**sections** `[\[SupportRichContentListPickerSectionInput!\]!](/docs/api-reference/v3/reference/support/support-rich-content-list-picker-section-input)` *required*

1 to 5 sections, with at most 20 rows in all. With several, each needs a title.

**quickReply** `[SupportRichContentQuickReplyInput](/docs/api-reference/v3/reference/support/support-rich-content-quick-reply-input)`

A Quick Reply.

**fields**

**suggestions** `[\[SupportRichContentQuickReplySuggestionInput!\]!](/docs/api-reference/v3/reference/support/support-rich-content-quick-reply-suggestion-input)` *required*

2 to 5 answers.

**summaryText** `String`

The line the conversation list shows for it. The device cuts it past about 30 characters.

**savedElement** `[SupportRichContentSavedElementInput](/docs/api-reference/v3/reference/support/support-rich-content-saved-element-input)`

An element from the brand's saved library.

**fields**

**elementId** `String!` *required*

The saved element's id, from the `SmsThread`'s `appleMessages.savedElements`: 1 to 40 lowercase letters, digits, hyphens or underscores. One the brand doesn't have is RICH\_CONTENT\_NOT\_SUPPORTED.

**signInRequest** `[SupportRichContentSignInRequestInput](/docs/api-reference/v3/reference/support/support-rich-content-sign-in-request-input)`

A sign-in request.

**fields**

**bubble** `[SupportRichContentBubbleInput](/docs/api-reference/v3/reference/support/support-rich-content-bubble-input)`

The bubble's own lines.

**timePicker** `[SupportRichContentTimePickerInput](/docs/api-reference/v3/reference/support/support-rich-content-time-picker-input)`

A Time Picker.

**fields**

**bubble** `[SupportRichContentBubbleInput](/docs/api-reference/v3/reference/support/support-rich-content-bubble-input)`

The bubble's own lines.

**event** `[SupportRichContentTimePickerEventInput!](/docs/api-reference/v3/reference/support/support-rich-content-time-picker-event-input)` *required*

The event and its times.

**threadId** `ID!` *required*

One of the ticket's threads, on a channel that takes replies (not voice).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.