Update custom font

Update the metadata of a custom font. The font binary is not changed by this endpoint. To replace the binary, use [Replace custom font file](#operation/replace-custom-font-file). The request body must include at least one of `fontFamily`, `weight`, `italic`, or `fontDisplay`. Required scope | `sites:write`

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

site_idstringRequiredformat: "objectid"
Unique identifier for a Site
font_idstringRequiredformat: "objectid"
Unique identifier for a custom font on a site

Request

Metadata fields to update. At least one field is required.
fontFamilystringOptional

The CSS font-family name (1-256 characters)

weightintegerOptional1-1000

CSS font-weight value (1-1000)

italicbooleanOptional
Whether the font is italic
fontDisplayenumOptional

CSS font-display value

Allowed values:

Response

Request was successful
customFontobject
A custom font uploaded to a Webflow site

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error