Print Job
The print job resource.
Basehttps://rest.carbon.ms/printJob
GET
/printJobList print jobs
Retrieve a paginated list of print jobs. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
GEThttps://rest.carbon.ms/printJob
curl --request GET \
--url 'https://rest.carbon.ms/printJob?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"id": "abc123def456",
"companyId": "xyz789",
"status": "string",
"printerUrl": "string",
"sourceDocument": "string",
"sourceDocumentId": "xyz789",
"description": "string",
"origin": "string"
}
]GET
/printJobRetrieve a print job
Fetch a single print job by filtering on `id`.
Query parameters
idstringMatch on the print job's `id`, e.g. `eq.{id}`.
GEThttps://rest.carbon.ms/printJob
curl --request GET \
--url 'https://rest.carbon.ms/printJob?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"status": "string",
"printerUrl": "string",
"sourceDocument": "string",
"sourceDocumentId": "xyz789",
"description": "string",
"origin": "string"
}POST
/printJobCreate a print job
Create a new print job.
Body parameters
statusstringrequiredcontentTypestringcontentstringprinterUrlstringrequiredsourceDocumentstringrequiredsourceDocumentIdstringrequiredsourceDocumentReadableIdstringdescriptionstringrequiredoriginstringrequirederrorstringattemptsintegerrequiredcompletedAttimestampPOSThttps://rest.carbon.ms/printJob
curl --request POST \
--url https://rest.carbon.ms/printJob \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"status":"string","printerUrl":"string","sourceDocument":"string","sourceDocumentId":"xyz789","description":"string","origin":"string","attempts":0}'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"status": "string",
"printerUrl": "string",
"sourceDocument": "string",
"sourceDocumentId": "xyz789",
"description": "string",
"origin": "string"
}PATCH
/printJobUpdate a print job
Update an existing print job, matched on `id`.
Body parameters
statusstringrequiredcontentTypestringcontentstringprinterUrlstringrequiredsourceDocumentstringrequiredsourceDocumentIdstringrequiredsourceDocumentReadableIdstringdescriptionstringrequiredoriginstringrequirederrorstringattemptsintegerrequiredcompletedAttimestampPATCHhttps://rest.carbon.ms/printJob
curl --request PATCH \
--url 'https://rest.carbon.ms/printJob?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"status":"string"}'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"status": "string",
"printerUrl": "string",
"sourceDocument": "string",
"sourceDocumentId": "xyz789",
"description": "string",
"origin": "string"
}DELETE
/printJobDelete a print job
Delete a print job, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the print job to delete, e.g. `eq.{id}`.
DELETEhttps://rest.carbon.ms/printJob
curl --request DELETE \
--url 'https://rest.carbon.ms/printJob?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content