Skip to content

Set a form's theme

Sets the theme of a form to a public theme or one of the form’s team, as listed by Get themes. Needs the forms:write scope and editor access to the form.

PUT https://api.responsly.com/v1/forms/{form_id}/theme
FieldRequiredDescription
theme_idyesThe theme’s id from Get themes.
Terminal window
curl -X PUT https://api.responsly.com/v1/forms/Dg8Lz5ep/theme \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"theme_id": "D5kvGYdZ"}'

The response is the form, in the same shape as Get a form, with the new theme_id and version. The definition is included only for a token with the forms:read scope. If the form was moved to another team or deleted right after the change, the answer has only its id.

StatusMeaning
403The token lacks forms:write, or the form belongs to another team or a workspace you cannot edit.
412The form was moved to another workspace or deleted since it was checked. Nothing was changed.
422The theme does not exist, is deleted or belongs to another team.