Update the form theme

Replace the theme object and optionally update the logo or favicon.


PATCH/api/v1/forms/{formId}/theme

Authorization

Authorization required string · header
Send Bearer <token> with an account API key that has the forms:write scope.

Path parameters

formId required string
Form ID. See FormModel.

Request body

application/json

theme required object
Replacement theme object. Supported string keys are fontFamily, questionTextColor, answerTextColor, buttonBackground, buttonTextColor, backgroundColor, backgroundImage, and customCSS. backgroundBrightness is a number between −100 and 100. CSS values are validated.
logostring or null
Logo URL using HTTP or HTTPS. Use null to clear it.
faviconstring or null
Favicon URL using HTTP or HTTPS. Use null to clear it.

Response

200 · application/json

Source model: FormModel.

FieldTypeDescription
idstringID returned by the operation.
updatedbooleanWhether the update succeeded.