Update assessment
const url = 'https://api.dockt.com/v1/assessments/ast_example';const options = { method: 'PATCH', headers: { 'x-dockt-expected-workspace': 'wsp_example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"external_id":"example","job":{"namespace":"example","external_id":"example"},"inputs":[{"code":"example","value":["example"],"source":{"kind":"integration","reference":"example"},"valid_from":"1990-05-17","valid_until":"1990-05-17","reconciliation":{"claim_ids":["example"],"reason":"example"}}],"monitoring_enabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.dockt.com/v1/assessments/ast_example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-dockt-expected-workspace: wsp_example' \ --data '{ "external_id": "example", "job": { "namespace": "example", "external_id": "example" }, "inputs": [ { "code": "example", "value": [ "example" ], "source": { "kind": "integration", "reference": "example" }, "valid_from": "1990-05-17", "valid_until": "1990-05-17", "reconciliation": { "claim_ids": [ "example" ], "reason": "example" } } ], "monitoring_enabled": true }'Updates customer metadata or worker context for an assessment in the active workspace. Requires assessments:write, decisions:read, documents:read, and social-compliance-packages:read because the response contains the full assessment representation. Permissions are checked before changes are applied.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Unique Dockt assessment identifier.
Header Parameters
Section titled “Header Parameters”Rejects the request with 401 unless the browser session belongs to this auth_user_id. This assertion does not grant authority.
Unique Dockt workspace identifier.
Request Bodyrequired
Section titled “Request Bodyrequired”Updates metadata, adds input values with their sources, or stops or resumes monitoring. A new input value replaces the current value only for the same field and source; earlier values remain in the history.
object
Namespaced customer job identifier resolved through the active Job Profile revisions.
object
A value you provide with its source, called a Claim. Send null to withdraw the current value from that source. Dockt determines whether evidence verifies the value; your application cannot set verification.
object
object
ISO 8601 calendar date string.
ISO 8601 calendar date string.
object
Responses
Section titled “Responses”Envelope for a single resource response.
Envelope for a single resource response.
object
A case containing one worker’s details, documents, and evaluation results in a Workspace. The Workspace configuration determines which requirements apply.
object
Unique Dockt assessment identifier.
Unique Dockt workspace identifier.
Lifecycle state for an assessment.
Read-only summary of the worker identity Dockt can establish from the available information. All known nationalities are kept. Fields that remain unknown or conflicting are omitted.
object
ISO 8601 calendar date string.
object
object
ISO 8601 calendar date string.
ISO 8601 calendar date string.
object
ISO 8601 date-time string.
The value Dockt can use for a field, its sources, and how it is supported or verified. The status identifies values that are established, unknown, or conflicting.
object
Human-readable name shown in Dockt and customer systems.
Known values: declared, document_supported, authority_verified. New values may appear; preserve unfamiliar values and use a safe fallback.
object
object
A question about details still needed to evaluate the requirements in your active policy. An incomplete Decision may be available while questions remain unanswered.
object
Human-readable name shown in Dockt and customer systems.
Known values: string, integer, boolean, date, country_code, single_select. New values may appear; preserve unfamiliar values and use a safe fallback.
Known values: one, many. New values may appear; preserve unfamiliar values and use a safe fallback.
object
Human-readable name shown in Dockt and customer systems.
Exact executable compliance-package release applied to an assessment.
object
Policy-neutral evidence requirement and its current assessment status.
object
Human-readable name shown in Dockt and customer systems.
Current result of evaluating one evidence requirement.
External or planning obligation signaled by an applied compliance package.
object
Human-readable name shown in Dockt and customer systems.
Exact executable compliance-package release applied to an assessment.
object
Assessment-embedded summary of a canonical document, plus assessment-scoped match status.
object
Unique Dockt document identifier.
Processing lifecycle state for a workspace document.
Machine-readable document issue with a human-readable reason.
object
ISO 8601 date-time string.
Whether the assessment needs manual review and the machine-readable reasons.
object
Customer-safe periodic monitoring state for an assessment.
object
Compact current decision with actionable findings projected into an assessment detail response.
object
Unique Dockt decision identifier.
Dockt decision for an assessment based on available worker context and evidence.
Customer-facing traffic-light signal derived from the semantic decision.
object
ISO 8601 date-time string.
ISO 8601 date-time string.
ISO 8601 date-time string.
Example
{ "object": "single", "data": { "object": "assessment", "id": "ast_example", "workspace_id": "wsp_example", "status": "created", "worker": { "date_of_birth": "1990-05-17" }, "inputs": [ { "source": { "kind": "integration" }, "valid_from": "1990-05-17", "valid_until": "1990-05-17", "recorded_at": "2026-08-06T09:30:00Z" } ], "resolved_inputs": [ { "status": "established", "assurance": "declared", "sources": [ { "document_id": "doc_example", "observed_at": "2026-08-06T09:30:00Z", "fresh_until": "2026-08-06T09:30:00Z" } ] } ], "input_requests": [ { "value_type": "string", "cardinality": "one" } ], "requirements": [ { "status": "missing", "supporting_document_ids": [ "doc_example" ], "pending_document_ids": [ "doc_example" ], "review_document_ids": [ "doc_example" ], "invalid_document_ids": [ "doc_example" ] } ], "advisories": [ { "severity": "info", "phase": "pre_access" } ], "documents": [ { "object": "document", "id": "doc_example", "status": "uploaded", "document_result": "valid", "match_status": "pending", "uploaded_at": "2026-08-06T09:30:00Z", "completed_at": "2026-08-06T09:30:00Z" } ], "monitoring": { "status": "disabled", "next_reassessment_at": "2026-08-06T09:30:00Z", "monitoring_ends_at": "2026-08-06T09:30:00Z", "last_reassessed_at": "2026-08-06T09:30:00Z" }, "latest_decision": { "decision_id": "dec_example", "decision": "incomplete", "signal": "green", "findings": [ { "scope": "assessment", "impact": "informational" } ], "recommendation": { "action": "approve", "mode": "shadow" }, "created_at": "2026-08-06T09:30:00Z" }, "created_at": "2026-08-06T09:30:00Z", "updated_at": "2026-08-06T09:30:00Z" }}Problem Details response for HTTP 400. The type URI is the stable machine-readable error code.
Standard error response with a stable status, human-readable detail, and optional validation errors.
object
Structured request validation issues.
object
One request validation issue with a stable field path and human-readable message.
object
Example
{ "type": "https://docs.dockt.com/errors/invalid-request", "title": "Bad request", "status": 400, "detail": "The request did not match the expected schema.", "instance": "req_example1042"}Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.
Standard error response with a stable status, human-readable detail, and optional validation errors.
object
Structured request validation issues.
object
One request validation issue with a stable field path and human-readable message.
object
Example
{ "type": "https://docs.dockt.com/errors/missing-auth", "title": "Unauthorized", "status": 401, "detail": "Send a valid bearer token or browser session.", "instance": "req_example1042"}Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.
Standard error response with a stable status, human-readable detail, and optional validation errors.
object
Structured request validation issues.
object
One request validation issue with a stable field path and human-readable message.
object
Example
{ "type": "https://docs.dockt.com/errors/forbidden", "title": "Forbidden", "status": 403, "detail": "The authenticated principal does not have the required permission.", "instance": "req_example1042"}Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.
Standard error response with a stable status, human-readable detail, and optional validation errors.
object
Structured request validation issues.
object
One request validation issue with a stable field path and human-readable message.
object
Example
{ "type": "https://docs.dockt.com/errors/not-found", "title": "Not found", "status": 404, "detail": "The requested resource was not found in the authenticated scope.", "instance": "req_example1042"}Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.
Standard error response with a stable status, human-readable detail, and optional validation errors.
object
Structured request validation issues.
object
One request validation issue with a stable field path and human-readable message.
object
Example
{ "type": "https://docs.dockt.com/errors/conflict", "title": "Conflict", "status": 409, "detail": "The request conflicts with the current resource state.", "instance": "req_example1042"}Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.
Standard error response with a stable status, human-readable detail, and optional validation errors.
object
Structured request validation issues.
object
One request validation issue with a stable field path and human-readable message.
object
Example
{ "type": "https://docs.dockt.com/errors/validation", "title": "Validation failed", "status": 422, "detail": "Correct the invalid fields and send the request again.", "instance": "req_example1042", "errors": { "issues": [ { "path": [ "body", "inputs", "3", "value" ], "message": "Expected a two-letter country code." } ] }}Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.
Standard error response with a stable status, human-readable detail, and optional validation errors.
object
Structured request validation issues.
object
One request validation issue with a stable field path and human-readable message.
object
Example
{ "type": "https://docs.dockt.com/errors/rate-limit", "title": "Too many requests", "status": 429, "detail": "Wait for the Retry-After interval before retrying.", "instance": "req_example1042"}Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.
Standard error response with a stable status, human-readable detail, and optional validation errors.
object
Structured request validation issues.
object
One request validation issue with a stable field path and human-readable message.
object
Example
{ "type": "https://docs.dockt.com/errors/internal", "title": "Internal server error", "status": 500, "detail": "Retry the request safely or contact Dockt support with the request ID.", "instance": "req_example1042"}Problem Details response for HTTP 503. The type URI is the stable machine-readable error code.
Standard error response with a stable status, human-readable detail, and optional validation errors.
object
Structured request validation issues.
object
One request validation issue with a stable field path and human-readable message.
object
Example
{ "instance": "req_example1042"}