admin-catalog-tools
Save an extracted component to the catalog
Creates a components record (always preferred_suggestion: false; null and empty fields are dropped). brand is a brand name that is matched or created in component_brands. An icon data URI is uploaded as a <slugified-name>.png file; any other icon string is stored as-is. Each affiliate_links entry becomes an affiliate_links record. Brand and per-link failures do not fail the request; they are reported in warnings. The route performs no input validation of its own, so invalid input surfaces as 500.
post/api/admin/save-component
Request
- Base URL: https://voltplan.app
- URL: https://voltplan.app/api/admin/save-component
- Auth: HTTP bearer
Request body
Response
Component created.
Changes
No recorded changes to this operation across all 1 revision of this API.