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

# Submit correction

POST https://app.defdex.io/api/v1/corrections
Content-Type: application/json

Submit for human review; never changes published data directly. JSON body maximum 16 KB. Account caps: 100 open proposals and 50 submissions per rolling day. Same normalized proposal and key replay the original receipt with 200; different content returns 409. Requires corrections:submit.

Reference: https://docs.defdex.io/api-reference/correction-proposals/submit-correction

## Authentication

- `Authorization` header (bearer token, required) — Create a scoped key at https://app.defdex.io/developer/keys. Keep it private.

## Request

### Headers

- `Idempotency-Key` (string, required)

### Body (application/json)

This endpoint expects a CorrectionProposal.

- `dataset` (enum, required)
  - Allowed values: `agency-award-summaries`, `agency-summary-totals`, `award-facets`, `award-fiscal-years`, `award-provider-observations`, `award-summaries`, `awards`, `baseline-years`, `blog-posts`, `blog-topics`, `budget-figures`, `budget-obligation-links`, `budget-obligations`, `budget-trackers`, `citations`, `corrections`, `costs`, `entities`, `events`, `facilities`, `funding-round-participants`, `funding-rounds`, `input-dependencies`, `input-designations`, `inputs`, `investor-mandates`, `job-postings`, `joint-venture-partners`, `market-listings`, `market-structure-years`, `metric-observations`, `news-feed`, `office-commands`, `organization-guides`, `organization-identifiers`, `organization-inputs`, `organization-metrics`, `organization-redirects`, `organization-supplier-roles`, `organization-technologies`, `organizations`, `people`, `program-award-evidence`, `program-award-memberships`, `program-facilities`, `program-obligation-method`, `program-obligation-totals`, `program-obligations`, `program-operators`, `program-participants`, `program-systems`, `programs`, `recipient-award-summaries`, `ref-award-types`, `ref-competition-types`, `ref-countries`, `ref-fx-monthly`, `ref-naics-codes`, `ref-pricing-types`, `ref-product-service-codes`, `ref-program-codes`, `ref-set-aside-types`, `ref-states`, `referenced-awards`, `roles`, `sbir-cohort-phase3`, `sbir-cohorts`, `sbir-company-phases`, `sbir-fpds-years`, `sbir-generation`, `sbir-gov-years`, `sbir-sources`, `source-mentions`, `sources`, `summary-agency-award-counts`, `summary-award-actions`, `summary-award-place-sets`, `summary-award-program-code-years`, `summary-award-program-codes`, `summary-awards`, `summary-company-contract-award-counts`, `summary-company-fiscal-years`, `summary-fy-totals`, `summary-generation`, `summary-office-fy-totals`, `summary-recipient-first-positive-fy`, `summary-recipients`, `summary-reviewed-award-years`, `supply-relationships`, `system-components`, `system-inputs`, `system-milestones`, `system-technologies`, `systems`, `technologies`, `technology-inputs`, `trade-controls`
- `record_id` (string, required)
- `explanation` (string, required)
- `sources` (list of string, required)
- `proposed_value` (any, optional) — Proposed JSON; fields ending _usd require decimal strings. Maximum nesting 32; no unsafe integers.

## Response

### 200

Success

- `id` (string, optional)
- `dataset` (string, optional)
- `record_id` (string, optional)
- `explanation` (string, optional)
- `created_at` (string, optional)
- `updated_at` (string, optional)
- `status` (enum, optional)
  - Allowed values: `submitted`, `in_review`, `accepted`, `rejected`, `published`
- `reviewer_note` (string, optional, nullable)
- `sources` (list of string, optional)
- `proposed_value` (any, optional)

### 201

New proposal created.

- `id` (string, optional)
- `dataset` (string, optional)
- `record_id` (string, optional)
- `explanation` (string, optional)
- `created_at` (string, optional)
- `updated_at` (string, optional)
- `status` (enum, optional)
  - Allowed values: `submitted`, `in_review`, `accepted`, `rejected`, `published`
- `reviewer_note` (string, optional, nullable)
- `sources` (list of string, optional)
- `proposed_value` (any, optional)

## Errors

### 400 Bad Request Error

Invalid query, typed filter, cursor or query exceeds the database budget. Narrow exact filters.

- `error` (string, required)

### 401 Unauthorized Error

Missing, invalid or revoked key.

- `error` (string, required)

### 403 Forbidden Error

Key lacks the required scope.

- `error` (string, required)

### 404 Not Found Error

Unknown dataset, record or account-owned proposal.

- `error` (string, required)

### 409 Conflict Error

Build changed during a read, a build-scoped cursor expired, or an idempotency key conflicts.

- `error` (string, required)

### 413 Content Too Large Error

JSON body exceeds 16 KB.

- `error` (string, required)

### 429 Too Many Requests Error

Account request limit or correction submission limit reached.

- `error` (string, required)

### 503 Service Unavailable Error

Service temporarily unavailable.

- `error` (string, required)

## Examples

### Example 1

**Request**

```json
{
  "dataset": "agency-award-summaries",
  "record_id": "string",
  "explanation": "string",
  "sources": [
    "string"
  ]
}
```

**Response**

```json
{
  "id": "string",
  "dataset": "string",
  "record_id": "string",
  "explanation": "string",
  "created_at": "string",
  "updated_at": "string",
  "status": "submitted",
  "reviewer_note": "string",
  "sources": [
    "string"
  ]
}
```

**SDK Code**

```python
import requests

url = "https://app.defdex.io/api/v1/corrections"

payload = {
    "dataset": "agency-award-summaries",
    "record_id": "string",
    "explanation": "string",
    "sources": ["string"]
}
headers = {
    "Idempotency-Key": "Idempotency-Key",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://app.defdex.io/api/v1/corrections';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': 'Idempotency-Key',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"dataset":"agency-award-summaries","record_id":"string","explanation":"string","sources":["string"]}'
};

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

```go
package main

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

func main() {

	url := "https://app.defdex.io/api/v1/corrections"

	payload := strings.NewReader("{\n  \"dataset\": \"agency-award-summaries\",\n  \"record_id\": \"string\",\n  \"explanation\": \"string\",\n  \"sources\": [\n    \"string\"\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "Idempotency-Key")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://app.defdex.io/api/v1/corrections")

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

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = 'Idempotency-Key'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"dataset\": \"agency-award-summaries\",\n  \"record_id\": \"string\",\n  \"explanation\": \"string\",\n  \"sources\": [\n    \"string\"\n  ]\n}"

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

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://app.defdex.io/api/v1/corrections")
  .header("Idempotency-Key", "Idempotency-Key")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"dataset\": \"agency-award-summaries\",\n  \"record_id\": \"string\",\n  \"explanation\": \"string\",\n  \"sources\": [\n    \"string\"\n  ]\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://app.defdex.io/api/v1/corrections', [
  'body' => '{
  "dataset": "agency-award-summaries",
  "record_id": "string",
  "explanation": "string",
  "sources": [
    "string"
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => 'Idempotency-Key',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://app.defdex.io/api/v1/corrections");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "Idempotency-Key");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"dataset\": \"agency-award-summaries\",\n  \"record_id\": \"string\",\n  \"explanation\": \"string\",\n  \"sources\": [\n    \"string\"\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Idempotency-Key": "Idempotency-Key",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "dataset": "agency-award-summaries",
  "record_id": "string",
  "explanation": "string",
  "sources": ["string"]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://app.defdex.io/api/v1/corrections")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```

### Example 2

**Request**

```json
{
  "dataset": "agency-award-summaries",
  "record_id": "string",
  "explanation": "string",
  "sources": [
    "string"
  ]
}
```

**Response**

```json
{
  "id": "string",
  "dataset": "string",
  "record_id": "string",
  "explanation": "string",
  "created_at": "string",
  "updated_at": "string",
  "status": "submitted",
  "reviewer_note": "string",
  "sources": [
    "string"
  ]
}
```

**SDK Code**

```python
import requests

url = "https://app.defdex.io/api/v1/corrections"

payload = {
    "dataset": "agency-award-summaries",
    "record_id": "string",
    "explanation": "string",
    "sources": ["string"]
}
headers = {
    "Idempotency-Key": "Idempotency-Key",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://app.defdex.io/api/v1/corrections';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': 'Idempotency-Key',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"dataset":"agency-award-summaries","record_id":"string","explanation":"string","sources":["string"]}'
};

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

```go
package main

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

func main() {

	url := "https://app.defdex.io/api/v1/corrections"

	payload := strings.NewReader("{\n  \"dataset\": \"agency-award-summaries\",\n  \"record_id\": \"string\",\n  \"explanation\": \"string\",\n  \"sources\": [\n    \"string\"\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "Idempotency-Key")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://app.defdex.io/api/v1/corrections")

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

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = 'Idempotency-Key'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"dataset\": \"agency-award-summaries\",\n  \"record_id\": \"string\",\n  \"explanation\": \"string\",\n  \"sources\": [\n    \"string\"\n  ]\n}"

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

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://app.defdex.io/api/v1/corrections")
  .header("Idempotency-Key", "Idempotency-Key")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"dataset\": \"agency-award-summaries\",\n  \"record_id\": \"string\",\n  \"explanation\": \"string\",\n  \"sources\": [\n    \"string\"\n  ]\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://app.defdex.io/api/v1/corrections', [
  'body' => '{
  "dataset": "agency-award-summaries",
  "record_id": "string",
  "explanation": "string",
  "sources": [
    "string"
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => 'Idempotency-Key',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://app.defdex.io/api/v1/corrections");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "Idempotency-Key");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"dataset\": \"agency-award-summaries\",\n  \"record_id\": \"string\",\n  \"explanation\": \"string\",\n  \"sources\": [\n    \"string\"\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Idempotency-Key": "Idempotency-Key",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "dataset": "agency-award-summaries",
  "record_id": "string",
  "explanation": "string",
  "sources": ["string"]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://app.defdex.io/api/v1/corrections")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```