Create QR labels
curl --request POST \ --url https://api.whatsbuilt.fi/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/labels \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "count": 1, "element_global_ids": [ "example" ] }'count labels on no element, or one label linked to each of element_global_ids; at most 500 a call. The organisation’s hourly label limits apply (429). A repeat with the same Idempotency-Key and body returns the labels the first call created, with 200.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”A repeat with the same key and body returns the first answer instead of writing again. Keys are per integration and project.
Request Bodyrequired
Section titled “Request Bodyrequired”The body of createLabels: count or element_global_ids.
object
Labels on no element, to print and link later
One label linked to each element; an element that has a label or is not in the current model is skipped
Example generated
{ "count": 1, "element_global_ids": [ "example" ]}Responses
Section titled “Responses”The labels an earlier call with the same Idempotency-Key created
The answer of createLabels.
object
The labels, by GIAI.
A live label.
object
The label.
The project.
The GS1 GIAI printed in the QR code
The short code printed under the QR code
The GS1 Digital Link the QR code holds
The element the label is on; null while unassigned or retired
assigned and active are both in use; active once scanned. New statuses may come.
When it was put on its element.
Its first scan.
When it was minted.
The row’s change time.
Elements that got no label: they had one, or are not in the current model
Example
{ "labels": [ { "status": "unassigned", "deleted": false } ]}The new labels
The answer of createLabels.
object
The labels, by GIAI.
A live label.
object
The label.
The project.
The GS1 GIAI printed in the QR code
The short code printed under the QR code
The GS1 Digital Link the QR code holds
The element the label is on; null while unassigned or retired
assigned and active are both in use; active once scanned. New statuses may come.
When it was put on its element.
Its first scan.
When it was minted.
The row’s change time.
Elements that got no label: they had one, or are not in the current model
Example
{ "labels": [ { "status": "unassigned", "deleted": false } ]}Invalid body, parameters or Idempotency-Key
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}Missing, malformed, expired or revoked token
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}INSUFFICIENT_SCOPE; INSUFFICIENT_PROJECT_ROLE when the project role the scopes give does not cover the write, or the project is not the integration’s; PUBLIC_API_DISABLED when the project’s owning organisation has turned the API off
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}No such project, label or element
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}IDEMPOTENCY_KEY_REUSED: the key was used with another body
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}RATE_LIMITED; wait for Retry-After seconds
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}LABEL_GENERATION_INCOMPLETE: nothing was created; try again
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}