Skip to main content
PATCH

Authorizations

Authorization
string
header
required

Body

application/json
updates
object[]
required

Array of updates to text items.

variantId
string

Developer ID of the target variant. If a text item does not already have the target variant, it will be added. Omit if targeting base text

forceVariantCreation
boolean

If true, and the provided variantId is not found, create the variant. A variant name will be generated based on the passed in ID.

richText
enum<string>

When set to 'html', all text values in this request (including plural text) are parsed as HTML and saved as rich text. Supported formatting: <strong>/<b>, <em>/<i>, <u>, <s>, and <br> for line breaks. <sup> and <sub> are only supported for workspaces with superscript and subscript enabled. Unsupported markup (for example links, lists, or headings) is dropped and its text content kept.

Note: Fully-bolded strings will have that bold styling stripped, as Figma does not support bolding an entire text layer this way.

When omitted, text is saved as plaintext and any markup is stored literally.

Available options:
html

Response

Returns success status of the update operation

success
boolean
required

Indicates whether the update was successful