Skip to main content
POST
Create a survey theme

Authorizations

Authorization
string
header
required

An API key (utk_live_...) or an app's OAuth access token (uto_...).

Headers

Idempotency-Key
string

Any 1 to 255 printable ASCII characters, without a space at either end. The answer to the first request with a key is kept for 24 hours per credential: the same request again gets it back (Idempotent-Replayed: true), another request with the key is 409 PUB-002-002, and while the first still runs 409 PUB-002-003. A server error is not kept, and a request that never answered frees its key after 2 minutes: a retry with the key then runs again.

Maximum string length: 255

Body

application/json
name
string
required

1 to 120 characters.

Required string length: 1 - 120
basedOn
object

What the theme starts from: a style or another theme. The classic style when left out.

set
object | null

The keys to change, merged onto the theme; every other key stays. A key that isn't listed here is 400 PUB-018-005 at its path (set.general.font), never dropped.

Response

Created.

id
string<uuid>
required

What a survey draft's theme.themeId takes.

name
string
required
definition
object
required

The theme as stored: general, light, dark and page. A font is its stack and a drawn cover or pattern an address Usertick wrote.

isDefault
boolean
required

New blank surveys start with this theme.

usedBy
integer
required

The surveys that use it, archived ones left out.

usedByLive
integer
required

The live and paused surveys that use it, in what visitors see, in a variant or in their unpublished changes. Counted over the whole organization.

editable
boolean
required

True while usedByLive is 0: the API edits the theme only then.

version
integer
required

What expectedVersion of an edit names.

createdAt
string<date-time>
required
Example:

"2026-09-30T10:00:00.000Z"

updatedAt
string<date-time> | null
required
Example:

"2026-09-30T10:00:00.000Z"

Last modified on November 30, 2026