Passa al contenuto principale

Write Design System Files

POST 

/v1/design-systems/:design_system/files

Write files to a design system as ONE commit. Admins only.

files maps a path to its new content, or to null to drop that file from the design system's changes (the preset's file, if any, resolves again). Writing KpiCard/index.tsx replaces only that file of the preset's KpiCard; a new component directory needs a meta.json; tokens/tokens.json is a JSON merge patch over the preset tokens, where null removes a key. Brand: {"brand": {"name", "logo", "footer"}}.

Pass expectedRevision: when the design system has moved since, the write is refused with 409 and nothing is committed. A write that would not build is refused with 422 naming the file, before anything is committed. Limits: 300 files, 256 KB per file, 2 MB in all, .ts, .tsx and .json only.

Published dashboards change only when they are rebuilt (POST .../rebuild-dependents); drafts preview the new revision at once.

Request​

Responses​

Successful Response