{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Replace the binary of an existing custom font while preserving its ID and any references to it.\nThe upload handshake is identical to [Create custom font](#operation/create-custom-font).\n\nIf the existing font has a non-empty `axes` array (a variable font), you must include an `axes` field\nin the request. Send `axes: []` to declare that the new binary is a static font, or send the new variable\naxes to declare it is still variable. Omitting `axes` when the existing font is variable returns `400`.\n\nRequired scope | `sites:write`\n","properties":{"path":{"type":"object","properties":{"site_id":{"type":"string","examples":["580e63e98c9a982ac9b8b741"],"description":"Unique identifier for a Site"},"font_id":{"type":"string","examples":["66f3a1b2c4d5e6f7a8b9c0d1"],"description":"Unique identifier for a custom font on a site"}},"required":["site_id","font_id"],"additionalProperties":false},"body":{"type":"object","description":"Information about the replacement font binary","additionalProperties":false,"required":["fileName","fileHash"],"properties":{"fileName":{"type":"string","description":"File name including extension. Accepted extensions are `.woff2`, `.woff`, `.ttf`, `.otf`, and `.eot`. Maximum 256 characters.","examples":["AcmeSans-Regular-v2.woff2"]},"fileHash":{"type":"string","description":"Lowercase hex MD5 hash of the font binary (exactly 32 characters)","examples":["3c7d87c9575702bc3b1e991f4d3c638e"]},"axes":{"type":"array","maxItems":16,"items":{"description":"A variable font axis definition","required":["tag","min","max","defaultValue"],"properties":{"tag":{"type":"string","minLength":4,"maxLength":4,"pattern":"^[\\x20-\\x7E]{4}$","description":"The four-character OpenType axis tag, consisting of exactly 4 printable ASCII characters (for example, `wght`, `opsz`, `slnt`, `wdth`)","examples":["wght"]},"name":{"type":"string","maxLength":64,"description":"Optional human-readable label for the axis","examples":["Weight"]},"min":{"type":"number","description":"Minimum value for the axis","examples":[100]},"max":{"type":"number","description":"Maximum value for the axis","examples":[900]},"defaultValue":{"type":"number","description":"Default value for the axis. Must be between `min` and `max` (inclusive). Violating this constraint returns `400 BadArgument` with an error prefixed `fontMetadata.axes`.","examples":[400]}}},"description":"Variable font axes for the replacement binary. Required when the existing font has a non-empty `axes` array."}}}},"required":["path","body"],"additionalProperties":false},"name":"Replace custom font file","id":"webflow.replace-custom-font-file","example":{"path":{"site_id":"580e63e98c9a982ac9b8b741","font_id":"66f3a1b2c4d5e6f7a8b9c0d1"},"body":{"fileName":"AcmeSans-Regular-v2.woff2","fileHash":"3c7d87c9575702bc3b1e991f4d3c638e"}},"maxRequests":1,"summary":false}}