Upload a font file
Changed onUpload a font file (woff2, woff, ttf, otf, eot; max 20MB) to the project's storage and get back the metadata needed for a file item in the project/quiz/paywall fonts config. Family, weight, style and variable-font flag are read from the font file itself when possible (detected: true), otherwise guessed from the filename. Files are stored in the fonts subfolder by default.
post/project-files/upload-font
Request
- Base URLhttps://api.web2wave.com/api
- URLhttps://api.web2wave.com/api/project-files/upload-font
- AuthAPI key in header api_key
Headers
api_keystring required
API key for authentication
Request body multipart/form-data
Response
Font uploaded successfully
Example response
{
"type": "file",
"url": "https://s3.amazonaws.com/bucket/projects/production/123/fonts/Inter-Bold.woff2",
"filename": "Inter-Bold.woff2",
"path": "projects/production/123/fonts/Inter-Bold.woff2",
"format": "woff2",
"css_format": "woff2",
"family_suggestion": "Inter",
"weight": "700",
"style": "normal",
"detected": true
}Changes
- info
endpoint added
- info