cURL
curl --request PUT \ --url https://api.example.com/fonts/commands/upload \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file'
{ "name": "Roboto", "displayName": "Roboto Regular", "type": "sans-serif", "sources": { "regular": "https://fonts.gstatic.com/roboto/regular.woff2" } }
put 200 response
Font information
Font name identifier
"Roboto"
Display name of the font
"Roboto Regular"
Font type
"sans-serif"
Map of source identifiers to URLs
Show child attributes
{ "regular": "https://fonts.gstatic.com/roboto/regular.woff2"}
Was this page helpful?