v1

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

Create a migration job

Creates a migration job using body data.

post/migration-jobs

Query parameters

dry_runboolean

A modifier for creation to see what would be created if done.

Request body

source_idstring required
target_idstring
type'static_dataset' required

Response

Successful dry run response

Example response

{
  "allOf": {
    "job_number": 20,
    "last_updated": "2020-06-11T12:49:20+01:00",
    "label": "Consumer Price Index: All Items",
    "links": {
      "events": {
        "href": "https://api.beta.ons.gov.uk/v1/migration-jobs/20/events"
      },
      "self": {
        "href": "https://api.beta.ons.gov.uk/v1/migration-jobs/20",
        "job_number": 20
      },
      "tasks": {
        "href": "https://api.beta.ons.gov.uk/v1/migration-jobs/20/tasks"
      }
    },
    "config": {
      "collection_id": "migration-collection-20",
      "source_id": "/economy/inflationandpriceindices",
      "target_id": "migration-series-id"
    }
  },
  "tasks": [
    {
      "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"
      }
    }
  ]
}