Settle every cell waiting for confirmation as printed or not printed
const url = 'https://example.com/api/v1/sheets/example/cells/resolve-all';const options = { method: 'POST', headers: {'X-Label-Hub-Key': '<X-Label-Hub-Key>', 'Content-Type': 'application/json'}, body: '{"expected_cells":[1],"expected_count":1,"outcome":"printed"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/sheets/example/cells/resolve-all \ --header 'Content-Type: application/json' \ --header 'X-Label-Hub-Key: <X-Label-Hub-Key>' \ --data '{ "expected_cells": [ 1 ], "expected_count": 1, "outcome": "printed" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Sheet code, e.g. L4736-0002.
Sheet code, e.g. L4736-0002.
Request Bodyrequired
Section titled “Request Bodyrequired”object
The unconfirmed cells the caller showed, in any order. When the sheet’s unconfirmed cells are not exactly these now, also with the same number, nothing is settled (409 unconfirmed_count_changed).
Responses
Section titled “Responses”Successful Response
object
An active sheet whose wanted code on the back of the liner is not confirmed yet: id_placement back_side with id_printed false, or an extra code on the back that is pending (back_side_state). A sheet that never asked for a code on the back misses nothing.
Every cell that is not free, by cell number.
object
Whether the cell holds the sheet’s ID label (the hub fills it). Set by the hub; do not infer it from source.
Whether the feed-direction mark has been printed on this sheet.
Geometry of the version the sheet is pinned to.
object
Example
{ "back_side_state": "pending", "cells": [ { "state": "reserved" } ], "geometry": { "page_size": "A4", "shape": "rectangle" }, "id_placement": "cell", "state": "active"}Sheet not found.
Sheet is discarded, nothing is waiting for confirmation (no_unconfirmed_cells), or the count differs from expected_count or the cells from expected_cells (unconfirmed_count_changed, error_detail.unconfirmed holds the current number).
The request body is invalid.