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

# Reject a colour Candidate

POST https://api.morphiaone.ai/v1/digitisation/candidates/{candidate_id}/reject
Content-Type: application/json

Rejects a `pending` candidate. Send the `candidate_sha256` you reviewed: a
candidate already decided answers `409 CANDIDATE_DECIDED`, and another digest
`409 CANDIDATE_DIGEST_MISMATCH`. Rejection needs no evidence, so it holds once
the evidence is erased. Making the same candidate again answers this rejected
one; the review is not reopened.
Send an `Idempotency-Key`: it is required, and a retry with the same key and
the same request answers the first response, byte for byte, with
`Idempotency-Replayed: true`.
Requires the `digitisation.review` scope, which your account operator provisions;
served only where digitisation is enabled for your environment.

Reference: https://docs.morphiaone.ai/api-reference/endpoints/digitisation/candidates-reject

## Authentication

- `X-API-Key` header (required) — API key for one environment of your account. Keep server-side; never expose in browser clients.

## Request

### Path parameters

- `candidate_id` (string, required)

### Headers

- `Idempotency-Key` (string, optional, nullable)

### Body (application/json)

This endpoint expects an object.

- `candidate_sha256` (string, required)

## Response

### 200

The candidate, rejected; a replay under the same Idempotency-Key answers with Idempotency-Replayed: true

- `assessment_id` (string, required)
- `candidate` (map from string to any, required)
- `candidate_sha256` (string, required)
- `colour_contract_version` (integer, required)
- `created_at` (datetime, required)
- `derived_from_candidate_id` (string, required, nullable)
- `fields` (map from string to CandidateField, required)
- `id` (string, required)
- `review_status` (enum, required)
  - Allowed values: `pending`, `accepted`, `rejected`
- `reviewed_at` (datetime, required, nullable)
- `review_url` (string, optional, nullable)
- `reviewed_by` (ReviewActor, optional, nullable) — Who made a decision: ``user``, a person in the Platform, or ``api_key``. It names no person; the Platform shows who.

## Errors

### 400 Bad Request Error

Invalid digest or Idempotency-Key

- `error` (ErrorDetail, required)

### 401 Unauthorized Error

Missing or invalid API key

- `error` (ErrorDetail, required)

### 403 Forbidden Error

API key lacks the digitisation.review scope, or its account lets only a person decide (HUMAN_REVIEW_REQUIRED)

- `error` (ErrorDetail, required)

### 404 Not Found Error

No such candidate

- `error` (ErrorDetail, required)

### 409 Conflict Error

Already decided, another digest, or an idempotency conflict

- `error` (ErrorDetail, required)

### 503 Service Unavailable Error

Digitisation unavailable

- `error` (ErrorDetail, required)

## Types

### CandidateField

One field a candidate says: its status, and its value unless abstained.

- `status` (enum, required)
  - Allowed values: `measured`, `abstained`, `edited`
- `value` (string, optional, nullable)

### ReviewActor

Who made a decision: ``user``, a person in the Platform, or ``api_key``. It names no person; the Platform shows who.

- `type` (enum, required)
  - Allowed values: `user`, `api_key`

### ErrorDetail

- `code` (string, required)
- `message` (string, required)
- `request_id` (string, required)
- `details` (ErrorDetailDetails, optional)
- `doc_url` (string, optional, nullable)
- `retryable` (boolean, optional, nullable)

### ErrorDetailDetails

- map from string to any
- list of map from string to any

## Examples

**Request**

```json
{
  "candidate_sha256": "string"
}
```

**Response**

```json
{
  "assessment_id": "assessment_3t38gf4mbt0y96z8pzmp4w5mpq",
  "candidate": {
    "assessment_id": "assessment_3t38gf4mbt0y96z8pzmp4w5mpq",
    "assessment_output_sha256": "67b810e77d19f628534a2128d402605b8cc81aa1d43828793f2701f19ce8b97a",
    "colour_contract_version": 1,
    "kind": "digitisation.candidate",
    "report": {
      "analyzed_bytes_sha256": "9229dacfcfb7a93b54efccf2119c2e417546d10ed3fce2a18a067294b646c5a2",
      "clipped_fraction": 0,
      "colour_contract_version": 1,
      "icc_profile_sha256": null,
      "image": {
        "height": 64,
        "width": 64
      },
      "kind": "digitisation.colour_report",
      "lab_d65": [
        33.3028,
        42.2729,
        -74.7134
      ],
      "mean_linear_rgb": [
        0.012983,
        0.045186,
        0.57758
      ],
      "region": [
        0,
        0,
        32,
        32
      ],
      "source_colour": "untagged",
      "srgb_hex": "#1E3CC8"
    },
    "report_sha256": "13b9231215003368dc58598699f5aaf93c8b49b13561c1667aebbb065681110f",
    "source": {
      "analyzed_bytes_sha256": "9229dacfcfb7a93b54efccf2119c2e417546d10ed3fce2a18a067294b646c5a2",
      "evidence_id": "evidence_6952rp5rnjq4bpn9sk93vbq6pv",
      "region": [
        0,
        0,
        32,
        32
      ]
    }
  },
  "candidate_sha256": "e1e9fdf2e1a9fe90712dad6a3247af7c4b6b6144d770a9070983f1d665fe71bb",
  "colour_contract_version": 1,
  "created_at": "2026-10-22T03:21:05.118204Z",
  "derived_from_candidate_id": null,
  "fields": {
    "display_color": {
      "status": "measured",
      "value": "#1E3CC8"
    },
    "material.finish": {
      "status": "abstained",
      "value": null
    }
  },
  "id": "candidate_5w2kq8n4fz7yr3tm6vx9bhcj1d",
  "review_status": "rejected",
  "reviewed_at": "2026-10-22T03:25:12.640187Z"
}
```

**SDK Code**

```python Digitisation_candidatesReject_example
import requests

url = "https://api.morphiaone.ai/v1/digitisation/candidates/candidate_id/reject"

payload = { "candidate_sha256": "string" }
headers = {
    "X-API-Key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Digitisation_candidatesReject_example
const url = 'https://api.morphiaone.ai/v1/digitisation/candidates/candidate_id/reject';
const options = {
  method: 'POST',
  headers: {'X-API-Key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"candidate_sha256":"string"}'
};

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

```go Digitisation_candidatesReject_example
package main

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

func main() {

	url := "https://api.morphiaone.ai/v1/digitisation/candidates/candidate_id/reject"

	payload := strings.NewReader("{\n  \"candidate_sha256\": \"string\"\n}")

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

	req.Header.Add("X-API-Key", "<apiKey>")
	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 Digitisation_candidatesReject_example
require 'uri'
require 'net/http'

url = URI("https://api.morphiaone.ai/v1/digitisation/candidates/candidate_id/reject")

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

request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"candidate_sha256\": \"string\"\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.morphiaone.ai/v1/digitisation/candidates/candidate_id/reject")
  .header("X-API-Key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"candidate_sha256\": \"string\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.morphiaone.ai/v1/digitisation/candidates/candidate_id/reject', [
  'body' => '{
  "candidate_sha256": "string"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-Key' => '<apiKey>',
  ],
]);

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

```csharp Digitisation_candidatesReject_example
using RestSharp;

var client = new RestClient("https://api.morphiaone.ai/v1/digitisation/candidates/candidate_id/reject");
var request = new RestRequest(Method.POST);
request.AddHeader("X-API-Key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"candidate_sha256\": \"string\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Digitisation_candidatesReject_example
import Foundation

let headers = [
  "X-API-Key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = ["candidate_sha256": "string"] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.morphiaone.ai/v1/digitisation/candidates/candidate_id/reject")! 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()
```