> ## 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.

# SupportMacroCreateInput

> A new macro.

**addsInternalNote** `String`

Plain-text internal note to add when applied.

**addsTagNames** `[String!]`

Names of the store's tags to add when applied, at most 100. A name that is no tag of the store is refused with BAD\_USER\_INPUT, as the app's tag picker offers only the store's tags. In supportMacrosImport such a name instead fails that macro with UNKNOWN\_TAGS, or is created when createMissingTags is true.

**body** `[SupportMacroBodyInput!](/docs/api-reference/v3/reference/support/support-macro-body-input)` *required*

The reply body.

**fields**

**html** `String!` *required*

HTML as the app's reply editor 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. A variable is its bare name, as in text, or \<span data-variable="customer\_first\_name">customer\_first\_name\</span>; a name that isn't a variable stays as text.

**inlineImages** `[\[SupportMacroInlineImageInput!\]](/docs/api-reference/v3/reference/support/support-macro-inline-image-input)`

New images the body shows, at most 10, stored in the same write. Each needs an \<img> in html whose src is its src; one without, a src given twice, or a file that isn't an image is BAD\_USER\_INPUT. An image the macro already has stays when its \<img> keeps the url SupportMacro.bodyHtml or SupportMacro.inlineImages gave it.

**fields**

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

The image, uploaded with supportAttachmentUploadCreate. Its upload is used once, and only if the whole write succeeds.

**src** `String!` *required*

The src of the \<img> in html that shows this image: any http or https URL you choose to mark the spot, such as [https://images.invalid/logo.png](https://images.invalid/logo.png). It is never fetched; the stored image takes its place.

**text** `String`

Plain text, 1 to 10,000 characters; it may be empty only when html shows an image. Omitted, it is html's text. A variable is its bare name, such as customer\_first\_name; the app fills it in from the ticket when the macro is used. See SupportMacro.body for the list.

**name** `String!` *required*

Name shown in the macro picker, unique within the store, at most 255 characters. Leading and trailing spaces are dropped.

**setsEmailSubject** `String`

Email subject to set on the thread when applied.

**setsStatus** `[SupportMacroStatus](/docs/api-reference/v3/reference/support/support-macro-status)`

Status to set when applied. Omit to leave the status unchanged.

**snoozeDuration** `[SupportTicketSnoozeDuration](/docs/api-reference/v3/reference/support/support-ticket-snooze-duration)`

How long applying the macro snoozes the ticket. Required with setsStatus SNOOZED, and only then, as in the app's editor.


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