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
- 200
- 403
- 404
- 422
Successful Response
error is feature_not_offered: editing design systems is not included for this account; reading them still works. Also refused to a caller who is not an account admin.
Not found
Validation Error