--- title: Complete Font Upload | Luma Agents --- POST /v1/fonts/uploads/{face\_id}/complete Select code samplecURL (shell:curl) ```js const url = 'https://agents.lumalabs.ai/v1/fonts/uploads/example/complete'; const options = { method: 'POST', headers: {Authorization: 'Bearer ', '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); } ``` ```sh curl --request POST \ --url https://agents.lumalabs.ai/v1/fonts/uploads/example/complete \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "replace_face_id": "example" }' ``` - Productionagents.lumalabs.ai/v1/fonts/uploads/{face\_id}/complete 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 - **[BearerAuth](/api/agents/index.md#bearerauth)** ## Parameters ### Path Parameters **face\_id** required *Face Id* string ## Request Bodyrequired Media typeapplication/json *CompleteFontUploadRequest* object **replace\_face\_id** Any of: - [string](#tab-panel-0-0) - [null](#tab-panel-0-1) string null ##### Examplegenerated ```json { "replace_face_id": "example" } ``` ## Responses ### 200 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:` ref. string **family\_id** required *Family Id* A `font_family:` ref. string **is\_variable** *Is Variable* boolean **name** required *Name* string **style** required *Style* string **variation\_axes** Any of: - [Array\](#tab-panel-1-0) - [null](#tab-panel-1-1) Array\ *FontAxisOut* One 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 ```json { "is_variable": false } ``` ### 422 Validation Error Media typeapplication/json *HTTPValidationError* object **detail** *Detail* Array\ *ValidationError* object **ctx** *Context* object **input** *Input* **loc** required *Location* Array **msg** required *Message* string **type** required *Error Type* string ##### Examplegenerated ```json { "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ] } ```