Save or clear workspace custom CSS
Changed onSaves or clears the workspace's shared survey CSS. customCss replaces both fields; null clears all of it. The source is processed by the same processor every save path uses: constructs it removes come back as top-level warnings, and CSS it rejects is a 422 that leaves the saved CSS in effect. The replaced value becomes previous, the one recoverable revision — restore it by sending its source back. Unchanged source writes nothing.
Workspace CSS reaches every survey in the workspace, so writing it is narrower than writing a survey: organization owners and managers for signed-in users (session or OAuth), and a manage grant on this workspace for API keys — a Read & write grant is refused with 403. On Formbricks Cloud, adding or editing needs the Scale plan (403 custom_css_plan_required); clearing never does. Successful changes refresh the cached configuration the SDKs receive (they pick it up on their next configuration fetch). Saves that add or edit CSS count against a custom CSS budget of 60 per minute per user or API key, shared with custom CSS validation and with survey writes that add or edit custom CSS; beyond it they return 429. Re-saving the same CSS and clearing it are never counted.
Request
- Base URLhttps://app.formbricks.com
- URLhttps://app.formbricks.com/api/v3/workspaces/{workspaceId}/custom-css
- Auth
- API key in cookie next-auth.session-token
- or API key in header x-api-key
- or HTTP bearer
Path parameters
Workspace identifier.
Request body
Response
Workspace custom CSS saved (or unchanged)
Changes
- warning
added the new
chart_in_useenum value to theresponse property for the response status - warning
added the new
chart_in_useenum value to theresponse property for the response status - warning
added the new
chart_in_useenum value to theresponse property for the response status - warning
added the new
chart_in_useenum value to theresponse property for the response status - warning
added the new
chart_in_useenum value to theresponse property for the response status - warning
added the new
chart_in_useenum value to theresponse property for the response status - warning
added the new
dashboards_plan_requiredenum value to theresponse property for the response status - warning
added the new
dashboards_plan_requiredenum value to theresponse property for the response status - warning
added the new
dashboards_plan_requiredenum value to theresponse property for the response status - warning
added the new
dashboards_plan_requiredenum value to theresponse property for the response status - warning
added the new
dashboards_plan_requiredenum value to theresponse property for the response status - warning
added the new
dashboards_plan_requiredenum value to theresponse property for the response status - warning
added the new
limit_exceededenum value to the//response property for the response status - warning
added the new
limit_exceededenum value to the//response property for the response status - warning
added the new
limit_exceededenum value to the//response property for the response status - warning
added the new
limit_exceededenum value to the//response property for the response status - warning
added the new
limit_exceededenum value to the//response property for the response status - warning
added the new
limit_exceededenum value to the//response property for the response status
- warning
- warning
added the new
creatives_not_entitledenum value to theresponse property for the response status - warning
added the new
creatives_not_entitledenum value to theresponse property for the response status - warning
added the new
creatives_not_entitledenum value to theresponse property for the response status - warning
added the new
creatives_not_entitledenum value to theresponse property for the response status - warning
added the new
creatives_not_entitledenum value to theresponse property for the response status - warning
added the new
creatives_not_entitledenum value to theresponse property for the response status - warning
added the new
survey_has_linked_creativesenum value to theresponse property for the response status - warning
added the new
survey_has_linked_creativesenum value to theresponse property for the response status - warning
added the new
survey_has_linked_creativesenum value to theresponse property for the response status - warning
added the new
survey_has_linked_creativesenum value to theresponse property for the response status - warning
added the new
survey_has_linked_creativesenum value to theresponse property for the response status - warning
added the new
survey_has_linked_creativesenum value to theresponse property for the response status
- warning