Skip to main content
POST
Add a vector or component

Authorizations

x-magnific-api-key
string
header
required

Your Magnific API key. Learn how to obtain an API key

Path Parameters

brand_kit_id
string
required

The brand kit's id.

Body

application/json
svg
string | null

SVG markup, text converted to paths. Send this or html.

html
string | null

A complete self-contained HTML document for one component: inline style, fonts and images as data: URIs. Scripts and external URLs are removed.

name
string | null

Shown in the kit. Defaults to "Vector" or "Component".

Maximum string length: 120
asset_kind
enum<string> | null

The role. HTML is always component; an SVG defaults to other.

Available options:
logo,
icon,
pattern,
photo,
mockup,
component,
other,
null
slot
enum<string> | null

The Assets group to file it in. library keeps it for designs and never feeds generation. Ignored for a logo.

Available options:
graphic_elements,
patterns,
imagery,
illustrations,
icons,
applications,
components,
library,
null

Response

data
object
required