Save the PDF layout settings
const url = 'http://127.0.0.1:8765/api/resume-display';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"auto_fit":true,"spacing_scale":1,"titles":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://127.0.0.1:8765/api/resume-display \ --header 'Content-Type: application/json' \ --data '{ "auto_fit": true, "spacing_scale": 1, "titles": {} }'Save the PDF layout settings (per-profile titles, spacing, auto fit). Keys left out keep their saved values. A spacing_scale outside 0.7..1.4 answers 422 invalid_value. name and contact are ignored, never stored: the response then carries ignored and a note.
Request Body
Section titled “Request Body”object
Pick the spacing scale that ends the content near a page boundary (default true).
Accepted for older clients and ignored: GigAI stores no contact details (the response lists it in ignored).
Accepted for older clients and ignored: GigAI stores no name (the response lists it in ignored).
The PDF spacing unit’s scale, 0.7 to 1.4 (default 1.0); used when auto_fit is false.
Title per profile id.
object
Example
{ "auto_fit": true, "spacing_scale": 1, "titles": {}}Responses
Section titled “Responses”Success.
object
Example
{ "saved": true}Forbidden / forbidden_origin: loopback peer and Host 127.0.0.1:<port> or localhost:<port> only (Origin too on writes).
object
object
Examplegenerated
{ "error": { "allowed_keys": [ "example" ], "code": "example", "message": "example" }}Unsupported_media_type: writes need Content-Type: application/json.
object
object
Examplegenerated
{ "error": { "allowed_keys": [ "example" ], "code": "example", "message": "example" }}Unknown_key, wrong_type, invalid_value
object
object
Example
{ "error": { "code": "unknown_key", "message": "..." }}