Organization Themes

Upload a validated theme asset

post/theme-assets

Request

  • Base URL: https://app.openpo.st/api/v1
  • URL: https://app.openpo.st/api/v1/theme-assets
  • Auth: one of:
    • HTTP bearer
    • API key in cookie openpost_session

Request body

$schemastring uri

A URL to the JSON Schema for this object.

content_base64string required

Base64-encoded WOFF2 or raster file

font_familystring

Font family for a WOFF2 upload

font_style'normal' | 'italic'

Font style for a WOFF2 upload

font_weightinteger

100-step font weight for a WOFF2 upload

kind'font' | 'background' | 'texture' | 'illustration' required

Theme asset role

license_acknowledgedboolean

Confirms the Organization may use the uploaded font

media_type'font/woff2' | 'image/png' | 'image/jpeg' | 'image/webp' | 'image/avif' required

Static font/woff2 or supported raster image media type; variable fonts are rejected for mobile parity

namestring required

Asset label

organization_idstring required

Organization ID

Example request

{
  "$schema": "https://example.com/api/v1/schemas/UploadThemeAssetInputBody.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

checksum_sha256string required
created_atstring date-time required
created_bystring required
font_familystring
font_style'normal' | 'italic'
font_weightinteger
heightinteger
idstring required
kind'font' | 'background' | 'texture' | 'illustration' required
license_acknowledgedboolean
media_type'font/woff2' | 'image/png' | 'image/jpeg' | 'image/webp' | 'image/avif' required
namestring required
organization_idstring required
size_bytesinteger required
urlstring
widthinteger

Example response

{
  "$schema": "https://example.com/api/v1/schemas/ThemeAssetRecord.json"
}

Changes

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