Printago API
PATCH /v1/parts/{id}/text-sizing

Set text placeholder sizing

Set how text placeholders' values fit the space their text took. Applies to the part's current file only: `fileHash` must be the SHA-256 of that file, and Printago must have finished reading it. Otherwise it answers 409 and changes nothing, so a rule never lands on a file whose placeholders weren't detected yet. Only the named placeholders change; every other parameter and field is kept as it is.

Requires: part.edit

Path Parameters

id required
string
The part's unique identifier

Request Body

Rules by placeholder key, and the file they belong to

PartTextSizingUpdate
fileHashrequired
string
SHA-256 (hex) of the file the rules belong to. They're applied only when this is the part's current file and Printago has finished reading it.
pattern: ^[0-9a-f]{64}$
sizingrequired
Record<string, "stretch" | "fit" | "unconstrained">
Construct a type with a set of properties K of type T

Example Request

application/json
{
  "sizing": {},
  "fileHash": "string"
}

Response Schema

PartTextSizingResult
appliedrequired
string[]
Keys whose rule was set.
missingrequired
string[]
Keys the part has no text placeholder for.

Example Response

200 OK — application/json
{
  "applied": [
    "string"
  ],
  "missing": [
    "string"
  ]
}