Info
The following does not require CalderaRIP to be open. The jobs won't be imported to CalderaRIP's ImageBar.
There are several requests required to submit a Job:
- Get the Service ID
- Get the Device ID
- Get the Preset ID
- Import an Image (see below)
- Submit the Job with the Image ID + the Preset ID to a Device ID running on a Service ID (see below)
Import an Image
Warning
Submitted images have to be local to the service. In the case of remote services, we recommend using a NAS with identical mount points on all stations.
POST http://localhost:12340/v1/services/bG9jYWxob3N0OjQ1MzQzfmNhbGRlcmFyaXA/images'
--header 'Content-Type: application/json'
--header 'Accept: application/json'
--data '{
"uri": "file:///opt/caldera/var/public/Images/BIG_Sticker_Bird_Blue.pdf"
}'
The previous is a synchronous event, so the request will return an image ID when the image is imported:
Submit the Job
POST http://localhost:12340/v1/devices/bG9jYWxob3N0OjQ1MzQzfmNhbGRlcmFyaXB-VElGRi1IYWxmdG9uZQ/jobs'
--header 'Content-Type: application/ json'
--header 'Accept: application/json'
--data '{
"image": "bG9jYWxob3N0OjQ1MzQzfmNhbGRlcmFyaXB-MS4xNjQ2OC4wMDAwMA",
"preset": "bG9jYWxob3N0OjQ1MzQzfmNhbGRlcmFyaXB-VElGRi1IYWxmdG9uZX5bcGF0cmlja3ppbW1lcm5hbm5dTmVzdA"
}'
The request will return the Job ID to track: