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

# SupportMacroUpdateInput

> Changes to a macro. An omitted field keeps its current value, and null clears an optional automation. name and body can't be null. The forward-message automation is kept as it is.

**addsInternalNote** `String`

Plain-text internal note to add when applied. It replaces the note's formatting and mentions. Null adds no note.

**addsTagNames** `[String!]`

Names of the store's tags to add when applied, at most 100; one that is no tag of the store is refused with BAD\_USER\_INPUT. Null or an empty list adds none.

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

A new body. An inline image keeps its place when its \<img> uses the url SupportMacro.bodyHtml gave it; an image left out is removed, as saving in the app does. An \<img> that links to a stored image the macro no longer has is BAD\_USER\_INPUT, since the link expires.

**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`

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. Null removes this automation, so applying the macro leaves the thread's subject as it is.

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

Status to set when applied. Null stops setting a status. Changing it away from SNOOZED clears snoozeDuration.

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

How long applying the macro snoozes the ticket. Only when the macro sets SNOOZED, which needs one, as in the app's editor. Null clears it.


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