Skip to main content
PUT
/
fonts
/
commands
/
upload
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"
  }
}

Body

multipart/form-data
file
file

Response

200 - application/json

put 200 response

Font information

name
string

Font name identifier

Example:

"Roboto"

displayName
string

Display name of the font

Example:

"Roboto Regular"

type
string

Font type

Example:

"sans-serif"

sources
object

Map of source identifiers to URLs

Example:
{
"regular": "https://fonts.gstatic.com/roboto/regular.woff2"
}