RoutesArtifact themesThemeid

/artifact-themes/{themeId}

Change an organization theme; every artifact on it shows the change the next time it is opened

PATCH
/artifact-themes/{themeId}
AuthorizationBearer <token>

In: header

Path Parameters

themeId*string

Request Body

application/json

name?string

Name shown in pickers and accepted by agents; unique in the organization, not 'gatana' or 'none'

Length1 <= length <= 64
backgroundColor?string

Page background, as a hex color (#rgb or #rrggbb)

Match^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
textColor?string

Heading text; body text, lines and soft backgrounds are mixed from it and the background, as a hex color (#rgb or #rrggbb)

Match^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
accentColor?string

Buttons, links on hover, the eyebrow line and the gradient, as a hex color (#rgb or #rrggbb)

Match^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
headingFont?string

Font of headings

Value in"inter" | "fraunces" | "system-sans" | "system-serif"
bodyFont?string

Font of headings

Value in"inter" | "fraunces" | "system-sans" | "system-serif"
codeFont?string

Font of code

Value in"jetbrains-mono" | "system-mono"
logo?string

Logo shown at the top of every page, as a base64 data: URL of a PNG, JPEG, WebP or SVG image of at most 256 KB, or an empty string for none

Lengthlength <= 360000
extraCss?string

CSS added after the theme's own rules; the page's own styles still win over it

Lengthlength <= 100000

Response Body

application/json

curl -X PATCH "https://YOUR_ORG_ID.gatana.ai/api/v1/artifact-themes/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "string",
  "name": "string",
  "backgroundColor": "string",
  "textColor": "string",
  "accentColor": "string",
  "headingFont": "inter",
  "bodyFont": "inter",
  "codeFont": "jetbrains-mono",
  "logo": "string",
  "extraCss": "string",
  "createdAt": "string",
  "updatedAt": "string"
}