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 | Field | Required | Description |
|---|---|---|
theme_id | yes | The theme’s id from Get themes. |
Example
Section titled “Example”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.
Errors
Section titled “Errors”| Status | Meaning |
|---|---|
403 | The token lacks forms:write, or the form belongs to another team or a workspace you cannot edit. |
412 | The form was moved to another workspace or deleted since it was checked. Nothing was changed. |
422 | The theme does not exist, is deleted or belongs to another team. |