Skip to main content
POST
Publish a brand stylesheet

Authorizations

Authorization
string
header
required

Supabase JWT — Authorization: Bearer <token>.

Body

application/json
portal
enum<string>
required

interview (career and interview portal) or consumer (coaching portal). Only the interview portal has brands.

Available options:
interview,
consumer
Example:

"interview"

merchant_id
string<uuid>

Optional company. Admins and sub-merchant operators only; other callers always use their token's company.

Example:

"28106cba-1c27-4e53-b149-32113e5e8e31"

brand_id
string<uuid>

The sub-brand to publish. Leave it out for the main brand, the company's own.

files
string<uuid>[]

Publish the drafts of only these CSS files; the others stay as they were last published. Leave it out to publish every draft of this brand.

Response

The stylesheet is live.

url
string
required

Address of the built stylesheet. It is named after its content and never changes.

hash
string
required

First 16 characters of the SHA-256 of the stylesheet.

Example:

"9f86d081884c7d65"

size_bytes
integer
required

Size of the stylesheet.

Example:

18230

warnings
string[]
required

Worth telling the person, none of them stopped the publish: over 500 KB, rules outside .jm-site that reach the rest of the portal, removed "<" characters.