> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.odr.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.odr.io/_mcp/server.

# job/complete/{job_id}

GET https://job/complete/1999

POST a template id and pass the email of the creating user to create a new dataset with metadata corresponding to the template ID.

This requires an x-auth header with a valid API Token.

Reference: https://docs.odr.io/odr-search-api-v-4/job-complete-job-id

## Response

### 200

OK

- `database_uuid` (string, required)
- `internal_id` (integer, required)
- `record_name` (integer, required)
- `record_uuid` (string, required)
- `template_uuid` (string, required)
- `metadata_for_uuid` (string, required)
- `_record_metadata` (object, required)
  - `_create_date` (string, required)
  - `_updated_date` (string, required)
  - `_create_auth` (string, required)
  - `_public_date` (string, required)
- `fields` (list of any, required)
- `records` (list of any, required)

## Examples

**Response**

```json
{
  "database_uuid": "48e7e532a715a1c1cb02bed99138",
  "internal_id": 326,
  "record_name": 326,
  "record_uuid": "b14c1b13587b9db6832a8635cb78",
  "template_uuid": "93253b88d314bc2f11848f0eca15",
  "metadata_for_uuid": "b418ef9777d61f2f0a88144ed71a",
  "_record_metadata": {
    "_create_date": "2022-08-24 20:56:03",
    "_updated_date": "2022-08-24 20:56:03",
    "_create_auth": "nate@opendatarepository.org",
    "_public_date": "2200-01-01 00:00:00"
  },
  "fields": [],
  "records": []
}
```

**SDK Code**

```python job/complete/{job_id}_example
import requests

url = "https://https/job/complete/1999"

response = requests.get(url)

print(response.json())
```

```javascript job/complete/{job_id}_example
const url = 'https://https/job/complete/1999';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go job/complete/{job_id}_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://https/job/complete/1999"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby job/complete/{job_id}_example
require 'uri'
require 'net/http'

url = URI("https://https/job/complete/1999")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java job/complete/{job_id}_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://https/job/complete/1999")
  .asString();
```

```php job/complete/{job_id}_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://https/job/complete/1999');

echo $response->getBody();
```

```csharp job/complete/{job_id}_example
using RestSharp;

var client = new RestClient("https://https/job/complete/1999");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift job/complete/{job_id}_example
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://https/job/complete/1999")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```