Skip to navigation

Create theme

Creates a new theme.

Authentication

AuthorizationBearer
Bearer token authentication. Tokens can be generated from the user account. Privileges needed may vary.
OR
Authorizationstring

A string representation of JWT containing at least two parameters:

ctx.user_id — user’s id

ctx.account_id — user’s default account id ctx.account_uid — user’s default account uid The usage of account_(u)id from JWT is discouraged, user can have access to multiple accounts, every endpoint has to be account aware if it’s needed.

This JWT must be signed by the appropriate authority.

Request

Request to create a new theme.
namestringRequired
Name of the theme.
fontstringRequired
Font for the theme.
colorsanyRequired
backgroundanyOptional
fieldsobjectOptional
Defines font size and alignment for fields.
screensobjectOptional
Defines font size and alignment for welcome and thankyou screens.
has_transparent_buttonbooleanOptional

true if buttons should be transparent. Otherwise, false.

rounded_cornersstringOptional
Specifies border radius style of buttons and other elements in the form.
visibilitystringOptional
Specifies whether the theme is public or private.

Response

Created