labor_jobs

Returns a paginated list of top-level active jobs in a warehouse. Please note that this query is EXPERIMENTAL and may be changed, renamed, or removed without notice. For that reason, it must not be used for integrations. This query must also be enabled as a feature for the account; otherwise, the API responds with "Feature not enabled".

Arguments

ArgumentTypeRequiredDefaultDescription
warehouse_idString!Yes

Base64-encoded public_api warehouse id

firstIntNo

Page size (workforce_hero cursor pagination)

cursorStringNo

Cursor returned by a previous page

analyzeBooleanNo

If true, the query will only be analyzed (cost estimated) without executing it.

Return Type

LaborJobsResult

Query

query labor_jobs(
  $warehouse_id: String!,
  $first: Int,
  $cursor: String,
  $analyze: Boolean
) {
  labor_jobs(
    warehouse_id: $warehouse_id,
    first: $first,
    cursor: $cursor,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...LaborJobPageFragment
    }
  }
}

Variables

{
  "warehouse_id": "abc123",
  "first": 987,
  "cursor": "abc123",
  "analyze": true
}

Response

{
  "data": {
    "labor_jobs": {
      "request_id": "abc123",
      "complexity": 987,
      "data": LaborJobPage
    }
  }
}