update_component
Modify an existing RedStudio component by ID, changing only supplied fields; provided HTML, CSS, or JS replaces old values and a revision is recorded.
Instructions
Update a component. Only the fields you pass are changed; html, css and js are replaced wholesale when given. A revision is recorded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Numeric id | |
| js | No | JavaScript. Note: only the navigation component JS runs on the public site; footer JS is not rendered. | |
| css | No | CSS scoped to this page/component | |
| html | No | Full HTML of the page/component body (no <html>/<head>; Bootstrap 4.6 classes available). Links should be relative without a leading slash, e.g. href="about-us". | |
| name | No | Internal name | |
| permalink | No | Set to "navigation", "footer" or "signature" for the site-wide components; omit for a reusable block. | |
| description | No |