Skip to content

Save the PDF layout settings

PUT
/api/resume-display
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.

Media typeapplication/json
object
auto_fit

Pick the spacing scale that ends the content near a page boundary (default true).

boolean
contact

Accepted for older clients and ignored: GigAI stores no contact details (the response lists it in ignored).

array
name

Accepted for older clients and ignored: GigAI stores no name (the response lists it in ignored).

string
spacing_scale

The PDF spacing unit’s scale, 0.7 to 1.4 (default 1.0); used when auto_fit is false.

number
titles

Title per profile id.

object
Example
{
"auto_fit": true,
"spacing_scale": 1,
"titles": {}
}

Success.

Media typeapplication/json
object
key
additional properties
any
Example
{
"saved": true
}

Forbidden / forbidden_origin: loopback peer and Host 127.0.0.1:<port> or localhost:<port> only (Origin too on writes).

Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Examplegenerated
{
"error": {
"allowed_keys": [
"example"
],
"code": "example",
"message": "example"
}
}

Unsupported_media_type: writes need Content-Type: application/json.

Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Examplegenerated
{
"error": {
"allowed_keys": [
"example"
],
"code": "example",
"message": "example"
}
}

Unknown_key, wrong_type, invalid_value

Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Example
{
"error": {
"code": "unknown_key",
"message": "..."
}
}