Private
Create an instance
Create an instance which will be imported. To create an instance an import job id and href is required. This is to allow a link back to the import job
post/instances
Request body
Example request
{
"links": {
"dataset": {
"href": "https://api.beta.ons.gov.uk/v1/datasets/my-dataset",
"id": "my-dataset"
},
"job": {
"href": "https://api.beta.ons.gov.uk/v1/jobs/042e216a-7822-4fa0-a3d6-e3f5248ffc35",
"id": "042e216a-7822-4fa0-a3d6-e3f5248ffc35"
},
"self": {
"href": "https://api.beta.ons.gov.uk/v1/instances/45c4669b-3ae9-4ba7-b690-87e890a1c67f"
}
},
"state": "published"
}Response
Successfully created instance
Example response
{
"links": {
"dataset": {
"href": "https://api.beta.ons.gov.uk/v1/datasets/my-dataset",
"id": "my-dataset"
},
"job": {
"href": "https://api.beta.ons.gov.uk/v1/jobs/042e216a-7822-4fa0-a3d6-e3f5248ffc35",
"id": "042e216a-7822-4fa0-a3d6-e3f5248ffc35"
},
"self": {
"href": "https://api.beta.ons.gov.uk/v1/instances/45c4669b-3ae9-4ba7-b690-87e890a1c67f"
}
},
"state": "published"
}