PATCH /v3/jobs

Update list of jobs. Supported properties to update: owner, project, fav. You can use 0 for project to unset project from job. Response is an array of Jobs that were updated

Headers:
Content-Type: application/json
Authentication: Bearer %access_token%

Authentication:
Type: user
Scopes: [ jobs ]

Request body:
[
  {
    "ownerId": 0,
    "projectId": 0,
    "favorite": true
  },
  {
    "ownerId": 0,
    "projectId": 0,
    "favorite": true
  }
]

Response body:
}
  "jobs": [],
  "count": 0
}
CODE


PATCH /v3/jobs/{id}

Update’s jobs metadata. Supported properties to update: owner, project, fav. You can use 0 for project to unset project from job. Response is an array of Job that was updated.

Headers:
Content-Type: application/json
Authentication: Bearer %access_token%

Authentication:
Type: user
Scopes: [ jobs ]

Request body:
{
  "ownerId": 0,
  "projectId": 0,
  "favorite": true
}

Response body:
{
  "id": 0,
  "name": "string",
  "date": "string",
  "dateTime": "string",
  "favorite": true,
  "cost": 0,
  "duplex": true,
  "color": true,
  "pageCount": 0,
  "colorCount": 0,
  "copies": 0,
  "paper": {
    "state": 5
  }
}
CODE


POST /v3/jobs/delete

Cancel jobs. Mark a list of jobs as canceled. Request body is a list of id’s of jobs that should be canceled.

Headers:
Content-Type: application/json
Authentication: Bearer %access_token%

Authentication:
Type: user
Scopes: [ jobs ]

Request body:
[0, 0, 0]
CODE


DELETE /v3/jobs/{id}

Cancel job.

Headers:
Authentication: Bearer %access_token%

Authentication:
Type: user
Scopes: [ jobs ]
CODE


POST /v3/jobs/client

Creates a client spooling job. Request contains all of basic info to create a job. ID of created job is returned in response.

Headers:
Content-Type: application/json
Authentication: Bearer %access_token%

Authentication:
Type: user
Scopes: [ jobs ]

Request body:
{
  "queue": "string",
  "owner": "string",
  "computer": "string",
  "name": "string",
  "size": 0,
  "uuid": "string",
  "jobInfo": {}
}

Response body:
{
  "id": 0
}
CODE


POST /v3/jobs/process

Process jobs.

Headers:
Content-Type: application/json
Authentication: Bearer %access_token%

Authentication:
Type: user
Scopes: [ jobs ]

Request body:
{
  "jobIds": [
    0
  ],
  "owner": "string",
  "projectId": 0,
  "account": "string"
}
CODE


POST /v3/jobs/{id}/script

Process input from user interaction.

Headers:
Content-Type: application/json
Authentication: Bearer %access_token%

Authentication:
Type: user
Scopes: [ jobs ]

Request body:
{
  "-1052320151": {
    "duplex": true,
    "simplex": null
  },
  "state": []
}
CODE