Przejdź do głównej zawartości

Wydrukuj zapisany wcześniej plik

POST
/api/v1/printing/printjobFromBlob/{connectionId}/{printerId}
curl --request POST \
--url https://twoja-instancja-cloudprint-api.enterprise.sellrocket.pl/api/v1/printing/printjobFromBlob/1/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "binaryBlob": { "name": "example", "contentType": "example", "data": "example" }, "passThroughCommandData": { "additionalProperty": {} } }'

Wysyła na drukarkę plik zapisany wcześniej w magazynie plików, np. wynik /api/Renderer/RenderPdfToBlob.

connectionId
wymagane
integer format: int64
printerId
wymagane
integer format: int64
platformOrderId
string
Typ treściapplication/json
object
binaryBlob
object
name
string
nullable
contentType
string
nullable
data
string format: byte
nullable
passThroughCommandData
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
Examplegenerated
{
"binaryBlob": {
"name": "example",
"contentType": "example",
"data": "example"
},
"passThroughCommandData": {
"additionalProperty": {}
}
}

Accepted

object
title
string
nullable
contentType
string
nullable
state
string
nullable
lastStateChangeTimestamp
string format: date-time
nullable
printAttempt
integer format: int64
printRetries
integer format: int64
cpPrintJobId
integer format: int64
nullable
baseUri
string
nullable
path
string
nullable
connectionId
integer format: int64
printerId
integer format: int64
passThroughCommandData
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
platformOrderId
string
nullable
downloadMethod
string
nullable
createdAt
string format: date-time
nullable
requestedAtUtc
string format: date-time
nullable
printedAtUtc
string format: date-time
nullable