Render Label for Locations
POST
/v1/label-templates/{id}/render-locations
const url = 'https://example.com/api/v1/label-templates/example/render-locations';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"format":"example","locationIds":["example"],"pageSize":"example","showCutGuides":true,"skipLabels":1}'};
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/label-templates/example/render-locations \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "format": "example", "locationIds": [ "example" ], "pageSize": "example", "showCutGuides": true, "skipLabels": 1 }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Template ID
Request Bodyrequired
Section titled “Request Bodyrequired”Locations to render
Media typeapplication/json
object
format
“png” or “pdf”, defaults to “png”
string
locationIds
required
Array<string>
pageSize
“Letter”, “A4”, or “Custom” for PDF
string
showCutGuides
Draw light borders around labels for cutting
boolean
skipLabels
Leave this many positions empty on the first sheet
integer
Examplegenerated
{ "format": "example", "locationIds": [ "example" ], "pageSize": "example", "showCutGuides": true, "skipLabels": 1}Responses
Section titled “Responses”OK
string format: binary
string format: binary