v1

latestOpenAPI 3.0.0Open Government Licence v3.02026-07-2371816.7 KB
private

Gets a migration job's tasks

"Gets a specific migration job using the unique job number and returns it's tasks in a paginated list"

get/migration-jobs/{job_number}/tasks

Path parameters

job_numberinteger required

Unique human-readable identifier for a migration job

Query parameters

limitinteger

The number of items requested, defaulted to 10 and limited to 1000.

offsetinteger

The offset into the complete ordered set of items which satisfy the query, which specifies the first item to return (starting at 0). Use this parameter as a pagination mechanism along with the limit parameter."

state'submitted' | 'in_review' | 'approved' | 'published' | 'completed' | 'rejected' | 'cancelled' | 'migrating' | 'publishing' | 'pending_post_publish' | 'post_publishing' | 'reverting' | 'failed_post_publish' | 'failed_publish' | 'failed_migration' | 'failed_reversion'

A filter for item state, specifies a subset of items to be returned"

Response

Successful response

countinteger

How many jobs are present in the response

limitinteger

Max number of jobs we are returning with this response

offsetinteger

The number of documents into the full list this response started at

total_countinteger

How many jobs are available in total

Example response

{
  "items": [
    {
      "id": "1",
      "last_updated": "2020-06-11T12:49:20+01:00",
      "source": {
        "id": "1",
        "label": "Consumer price inflation tables",
        "dataset_id": "consumer-price-inflation"
      },
      "target": {
        "id": "1",
        "label": "Consumer price inflation tables",
        "dataset_id": "consumer-price-inflation"
      }
    }
  ]
}