Complete Font Upload
POST
/v1/fonts/uploads/{face_id}/complete
const url = 'https://agents.lumalabs.ai/v1/fonts/uploads/example/complete';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"replace_face_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://agents.lumalabs.ai/v1/fonts/uploads/example/complete \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "replace_face_id": "example" }'Parse and measure the uploaded bytes and add the face to its family.
replace_face_id names a face of the same weight and style to supersede;
without it, a face already in that slot is a 409 FONT.VARIANT_CONFLICT.
Completing a face that is already ready answers it again.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”face_id
required
Face Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “ Responses ”Successful Response
Media typeapplication/json
CompletedFontFace
A face as Luma read it from the uploaded file.
object
face_id
required
Face Id
A font_face:<uuid> ref.
string
family_id
required
Family Id
A font_family:<uuid> ref.
string
is_variable
Is Variable
boolean
name
required
Name
string
style
required
Style
string
variation_axes
Any of:
Array<object>
FontAxisOutOne OpenType variation axis from an uploaded variable font.
object
default_value
required
Default Value
number
max_value
required
Max Value
number
min_value
required
Min Value
number
tag
required
Tag
string
null
weight
required
Weight
integer
Example
{ "is_variable": false}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}