Read the colour tables a placement draws with
const url = 'https://api.pixonaut.app/v1/blanks/example/placements/example/preview-tables';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.pixonaut.app/v1/blanks/example/placements/example/preview-tables \ --header 'Authorization: Bearer <token>'Operation ID: blanks.previewTables.get
The estimate and preview tables a design on the placement draws its colours through on screen, where the print goes through an output profile the workspace uploaded: the constraints read naming the placement says this path as cmykPreviewTables once they are made. Refused with no_preview_tables where the design is drawn through a bundled profile’s (cmykPreviewProfile), or the tables are not made.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The tables a design on the placement is drawn through
object
The CMYK the press prints each point of an sRGB grid as.
object
The packed grid, one character per byte (gridTableText).
The sRGB each point of a CMYK grid is drawn as on screen.
object
The packed grid, one character per byte (gridTableText).
Examples
Example
{ "estimate": { "ghostscriptVersion": "10.05.1", "gridPoints": 17, "profileSha256": "4f1c0d9a6e2b7c3851f0a9d4e6b2c7a1f3e5d8b0c2a4f6e8d0b2c4a6e8f0a2c4", "text": "\u0000\u0003\u0001\u0002…" }, "preview": { "ghostscriptVersion": "10.05.1", "gridPoints": 9, "profileSha256": "4f1c0d9a6e2b7c3851f0a9d4e6b2c7a1f3e5d8b0c2a4f6e8d0b2c4a6e8f0a2c4", "text": "ÿþý\u0001…" }}Headers
Section titled “Headers”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
object
Examples
unauthorized
{ "error": "unauthorized"}Headers
Section titled “Headers”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, feature_disabled, forbidden, workspace_suspended
object
The feature the tenant does not have. Always sent with feature_disabled.
Examples
feature_disabled
{ "error": "feature_disabled", "feature": "api"}forbidden
{ "error": "forbidden"}origin_forbidden
{ "error": "origin_forbidden"}workspace_suspended
{ "error": "workspace_suspended"}Headers
Section titled “Headers”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, no_preview_tables
object
Examples
no_preview_tables
{ "error": "no_preview_tables"}not_found
{ "error": "not_found"}Headers
Section titled “Headers”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
object
Examples
rate_limited
{ "error": "rate_limited"}Headers
Section titled “Headers”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
Examples
db_error
{ "error": "db_error"}Headers
Section titled “Headers”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].