Skip to content

List the blank placements a template fits

GET
/v1/templates/{id}/fitting-blanks
curl --request GET \
--url 'https://api.pixonaut.app/v1/templates/example/fitting-blanks?page=1&pageSize=50' \
--header 'Authorization: Bearer <token>'

Operation ID: templates.fittingPlacements.list

Every placement on the tenant’s blanks, with the verdict for this artwork at the size it would print at there. It answers geometry, not whether the pairing is sold, and it answers for a draft or paused template too. The page is of BLANKS: one blank with three placements is three items, so page on page and total, not on the number of items. q keeps the blanks whose name holds it, case aside.

id
required

A template id, baseId@version.

string

A template id, baseId@version.

page

The page to read, from 1; the first when left out.

integer
default: 1 >= 1 <= 100000

The page to read, from 1; the first when left out.

pageSize
integer
default: 50 >= 1 <= 200
q
string
<= 200 characters

A page of placements with their verdicts

Media typeapplication/json
object
items
required
Array<object>
object
blankId
required
string
blankName
required
string
defaultHeightMm
required
number
defaultWidthMm
required
number
maxHeightMm
required
number
maxWidthMm
required
number
placementId
required
string
placementName
required
string
printHeightMm
required
number
printWidthMm
required
number
verdict
required
One of:
object
legal
required
boolean
page
required
number
pageSize
required
number
total
required
number

Examples

Exampleexample

Example

{
"items": [
{
"blankId": "blank_tshirt",
"blankName": "Classic T-shirt",
"defaultHeightMm": 360,
"defaultWidthMm": 280,
"maxHeightMm": 360,
"maxWidthMm": 280,
"placementId": "front",
"placementName": "Front",
"printHeightMm": 360,
"printWidthMm": 280,
"verdict": {
"legal": true
}
}
],
"page": 1,
"pageSize": 50,
"total": 1
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: unauthorized

Media typeapplication/json
object
error
required
string

Examples

Exampleunauthorized

unauthorized

{
"error": "unauthorized"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: origin_forbidden, forbidden, feature_disabled, workspace_suspended

Media typeapplication/json
object
error
required
string
feature

The feature the tenant does not have. Always sent with feature_disabled.

string

Examples

feature_disabled

{
"error": "feature_disabled",
"feature": "api"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: not_found

Media typeapplication/json
object
error
required
string

Examples

Examplenot_found

not_found

{
"error": "not_found"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: invalid_query

Media typeapplication/json
object
error
required
string

Examples

Exampleinvalid_query

invalid_query

{
"error": "invalid_query"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: rate_limited

Media typeapplication/json
object
error
required
string

Examples

Examplerate_limited

rate_limited

{
"error": "rate_limited"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: db_error. A request that failed unexpectedly answers as text instead.

object
error
required
string

Examples

Exampledb_error

db_error

{
"error": "db_error"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Questions? Write to [email protected].

Status · Terms of service · Privacy policy · Subprocessors