Brands

Update a brand

Updates a brand. Each section given replaces that section whole. Published templates keep the brand they were built against until they are republished.

patch/v1/brands/{slug}

Request

  • Base URL: https://api.samva.dev
  • URL: https://api.samva.dev/v1/brands/{slug}
  • Auth: API key in header x-api-key

Path parameters

slugstring required

Request body

newSlugstring nullable

Renames the brand. Projects importing samva:brand/<old slug> stop building until they import the new slug.

namestring nullable
cssstring nullable

Response

Brand

idstring required
slugstring required

The brand's handle, unique in the organization; samva:brand/<slug> names it.

namestring required
isDefaultboolean required

Whether bare samva:brand and domains without a brand resolve to this brand.

cssstring required

Brand theme CSS: @theme variables, one dark-mode @theme of colors, and @font-face rules with https WOFF2 sources.

digeststring required

SHA-256 of the brand's css, assets and footer. A publication built against a different digest predates the brand's current content.

createdAtstring required
updatedAtstring required

Changes

No recorded changes to this operation across all 1 revision of this API.