theme.themeId. The analysis themes that Usertick files answers under are a different list, which GET /themes returns.
An app or an AI assistant acts as the person who connected it, so writing a theme requires the permission to manage surveys. Each change appears in the activity log as made through the credential. Deleting a theme and choosing the default one stay with a person in Usertick.
The theme
Create a theme
GET /survey-themes/capabilities first. It lists every key with its type, the values or the range it takes and what a theme without it draws, the fonts, the built-in styles, and your plan’s limits.
basedOnnames what the theme starts from, either a built-instyleor a savedthemeId. Without it, the theme starts from the classic style.setholds only what differs from that base. A key the theme doesn’t have returns400withPUB-018-005and names its path.- A picture of the survey page is the
urlof a file in your media library. See Upload a picture. - Your plan’s limits apply. See What your plan includes.
201 with the theme and its address in Location. No survey uses the theme yet.
What your plan includes
API keys start on the Pro plan and AI assistants on Starter.
limits in GET /survey-themes/capabilities says what applies to your organization: themesUsed and themesAllowed (null for unlimited), customCssAllowed and picturesAllowed. A library at its limit still takes changes to the themes it holds. A theme that kept custom CSS or pictures when the organization moved to a lower plan stays editable, while a change that adds them is refused. The exception is custom CSS on a theme that a website survey uses: the change returns 403 with THM-002-003 until set clears the CSS. A new theme based on one that holds custom CSS or pictures is refused on a plan without them, until set sends null for them.
Edit a theme
A saved theme’s change reaches every survey that uses it at once. An edit through the API therefore changes drafts and archived surveys only: while a live or paused survey uses the theme, its unpublished changes included, the edit returns409 with PUB-018-002 and nothing changes. A person edits that theme in Usertick, or you save a new theme from it with basedOn.
PATCH /survey-themes/{themeId} takes the version of your last read as expectedVersion and a name, a set or both. A key left out of set stays as it is, null clears a key that a theme may leave out, and "page": null clears the survey page’s settings. If the theme changed since you read it, the edit returns 409 with PUB-018-003: read it again and redo the edit.