Edit a draft Policy version
const url = 'https://api.dockt.com/v1/policy-versions/plv_example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"definition":{"packages":[{"code":"example","version":"example"}],"rules":[{"rule_code":"example","label":"example","applies_when":{"kind":"always"},"expectation":{"kind":"fact_comparison","fact":"example","operator":"equals","value":"example"},"enforcement":"required","applies_to":"assignment"}],"lists":[{"code":"example","title":"example","items":[{"kind":"document","document_type":"example","document_conditions":[{"key":"example","check":{"kind":"one_of","values":["example"]},"on_mismatch":"exclude","on_unclear":"exclude","document_types":["example"]}]}]}],"overrides":[{"target":{"source":"compliance_package","source_id":"example","rule_code":"example"},"enforcement":"required","qualification_comparison_policy":{"mode":"accepted_only"},"applies_when":{"kind":"always"},"expectation":{"kind":"fact_comparison","fact":"example","operator":"equals","value":"example"},"remove":[{"kind":"document","document_type":"example"}],"require_also":[{"kind":"fact_comparison","fact":"example","operator":"equals","value":"example"}],"accept_also":[{"kind":"fact_comparison","fact":"example","operator":"equals","value":"example"}],"apply_only_when":[{"kind":"always"}],"apply_also_when":[{"kind":"always"}],"reason":"example"}],"list_overrides":[{"list":"example","accept_also":[{"kind":"document","document_type":"example","document_conditions":[{"key":"example","check":{"kind":"one_of","values":["example"]},"on_mismatch":"exclude","on_unclear":"exclude","document_types":["example"]}]}],"remove":[{"kind":"document","document_type":"example"}],"reason":"example"}],"expiry_warnings":[{"document_type":"example","days":1}],"document_validity":[{"document_type":"example","days_after_issue":1,"counts_from":"each_document"}],"jobs":[{"codes":["example"],"title":"example","rules":[{"rule_code":"example","label":"example","applies_when":{"kind":"always"},"expectation":{"kind":"fact_comparison","fact":"example","operator":"equals","value":"example"},"enforcement":"required"}],"proof_required":true}],"examples":[{"name":"example","attributes":{"additionalProperty":["example"]},"roles":["example"],"expect":["example"],"expect_not":["example"]}],"recheck_interval_days":1},"source":"example"}'};
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/policy-versions/plv_example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "definition": { "packages": [ { "code": "example", "version": "example" } ], "rules": [ { "rule_code": "example", "label": "example", "applies_when": { "kind": "always" }, "expectation": { "kind": "fact_comparison", "fact": "example", "operator": "equals", "value": "example" }, "enforcement": "required", "applies_to": "assignment" } ], "lists": [ { "code": "example", "title": "example", "items": [ { "kind": "document", "document_type": "example", "document_conditions": [ { "key": "example", "check": { "kind": "one_of", "values": [ "example" ] }, "on_mismatch": "exclude", "on_unclear": "exclude", "document_types": [ "example" ] } ] } ] } ], "overrides": [ { "target": { "source": "compliance_package", "source_id": "example", "rule_code": "example" }, "enforcement": "required", "qualification_comparison_policy": { "mode": "accepted_only" }, "applies_when": { "kind": "always" }, "expectation": { "kind": "fact_comparison", "fact": "example", "operator": "equals", "value": "example" }, "remove": [ { "kind": "document", "document_type": "example" } ], "require_also": [ { "kind": "fact_comparison", "fact": "example", "operator": "equals", "value": "example" } ], "accept_also": [ { "kind": "fact_comparison", "fact": "example", "operator": "equals", "value": "example" } ], "apply_only_when": [ { "kind": "always" } ], "apply_also_when": [ { "kind": "always" } ], "reason": "example" } ], "list_overrides": [ { "list": "example", "accept_also": [ { "kind": "document", "document_type": "example", "document_conditions": [ { "key": "example", "check": { "kind": "one_of", "values": [ "example" ] }, "on_mismatch": "exclude", "on_unclear": "exclude", "document_types": [ "example" ] } ] } ], "remove": [ { "kind": "document", "document_type": "example" } ], "reason": "example" } ], "expiry_warnings": [ { "document_type": "example", "days": 1 } ], "document_validity": [ { "document_type": "example", "days_after_issue": 1, "counts_from": "each_document" } ], "jobs": [ { "codes": [ "example" ], "title": "example", "rules": [ { "rule_code": "example", "label": "example", "applies_when": { "kind": "always" }, "expectation": { "kind": "fact_comparison", "fact": "example", "operator": "equals", "value": "example" }, "enforcement": "required" } ], "proof_required": true } ], "examples": [ { "name": "example", "attributes": { "additionalProperty": [ "example" ] }, "roles": [ "example" ], "expect": [ "example" ], "expect_not": [ "example" ] } ], "recheck_interval_days": 1 }, "source": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Dockt Policy version 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.
Request Bodyrequired
Section titled “Request Bodyrequired”Replaces a draft with a definition or with policy source; send one of them. Source that does not read fails with 422 policy_source_invalid.
object
object
object
object
Human-readable name shown in Dockt and customer systems.
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Deprecated and ignored: what a qualification teaches is in the qualification catalogue. Set equivalents on an accepted qualification instead.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
Met by any document or qualification on a list of the Policy or the Policy it builds on.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
Defaults to assignment.
A named list of accepted evidence, such as what counts as basic safety. A rule that requires the list is met by anything on it.
object
Human-readable name shown in Dockt and customer systems.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
object
Replaces when the rule applies.
object
Replaces what the rule requires.
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Deprecated and ignored: what a qualification teaches is in the qualification catalogue. Set equivalents on an accepted qualification instead.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
Met by any document or qualification on a list of the Policy or the Policy it builds on.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Deprecated and ignored: what a qualification teaches is in the qualification catalogue. Set equivalents on an accepted qualification instead.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
Met by any document or qualification on a list of the Policy or the Policy it builds on.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Deprecated and ignored: what a qualification teaches is in the qualification catalogue. Set equivalents on an accepted qualification instead.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
Met by any document or qualification on a list of the Policy or the Policy it builds on.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Deprecated and ignored: what a qualification teaches is in the qualification catalogue. Set equivalents on an accepted qualification instead.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
Met by any document or qualification on a list of the Policy or the Policy it builds on.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
Changes to a list of the Policy this one builds on. Accepting more needs a reason.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
How many days before a document of this type expires its requirement counts as expiring soon, overriding the document type’s default.
object
How long a document of this type counts, from its issue date, for example an A1 request acknowledgement you accept for 60 days.
object
first_document counts every document of the type from the worker’s first one, so a later one, such as a second A1 request, cannot extend the period. Defaults to each_document.
Requirements for Assignments with one of the job’s role codes.
object
Role codes that select this job, such as welder or your own job code.
Human-readable name shown in Dockt and customer systems.
object
Human-readable name shown in Dockt and customer systems.
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Deprecated and ignored: what a qualification teaches is in the qualification catalogue. Set equivalents on an accepted qualification instead.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
Met by any document or qualification on a list of the Policy or the Policy it builds on.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
An uploaded document must prove the job’s qualifications, not only a registry.
A worker situation and the rules you expect. Checked at activation; a failing example blocks it.
object
Human-readable name shown in Dockt and customer systems.
Rules that must apply: your rules and the base Policy’s by code, package rules as <package>.<rule_code>.
Rules that must not apply.
Days between re-checks of open work against registries (company, credential and document registries). Defaults to 7; a Policy that builds on another overrides the base’s.
Policy source in the policy language.
Responses
Section titled “Responses”Envelope for a single resource response.
Envelope for a single resource response.
object
object
Dockt Policy version identifier.
object
Dockt Policy identifier.
object
Compliance package releases; only on a Policy without a base.
object
Your own rules, in the same policy language as the packages.
object
Human-readable name shown in Dockt and customer systems.
object
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Deprecated and ignored: what a qualification teaches is in the qualification catalogue. Set equivalents on an accepted qualification instead.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
Met by any document or qualification on a list of the Policy or the Policy it builds on.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Deprecated and ignored: what a qualification teaches is in the qualification catalogue. Set equivalents on an accepted qualification instead.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
Met by any document or qualification on a list of the Policy or the Policy it builds on.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
Defaults to assignment.
Named lists of accepted evidence your rules can require.
A named list of accepted evidence, such as what counts as basic safety. A rule that requires the list is met by anything on it.
object
Human-readable name shown in Dockt and customer systems.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Adjustments to package rules and to rules of the Policy this one builds on.
object
Replaces when the rule applies.
object
Replaces what the rule requires.
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Deprecated and ignored: what a qualification teaches is in the qualification catalogue. Set equivalents on an accepted qualification instead.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
Met by any document or qualification on a list of the Policy or the Policy it builds on.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Deprecated and ignored: what a qualification teaches is in the qualification catalogue. Set equivalents on an accepted qualification instead.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
Met by any document or qualification on a list of the Policy or the Policy it builds on.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Deprecated and ignored: what a qualification teaches is in the qualification catalogue. Set equivalents on an accepted qualification instead.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
Met by any document or qualification on a list of the Policy or the Policy it builds on.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Deprecated and ignored: what a qualification teaches is in the qualification catalogue. Set equivalents on an accepted qualification instead.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
Met by any document or qualification on a list of the Policy or the Policy it builds on.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Deprecated and ignored: what a qualification teaches is in the qualification catalogue. Set equivalents on an accepted qualification instead.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
Met by any document or qualification on a list of the Policy or the Policy it builds on.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Deprecated and ignored: what a qualification teaches is in the qualification catalogue. Set equivalents on an accepted qualification instead.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
Met by any document or qualification on a list of the Policy or the Policy it builds on.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
object
object
Adjustments to lists of the Policy this one builds on.
Changes to a list of the Policy this one builds on. Accepting more needs a reason.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Warning periods per document type; a Policy that builds on another overrides the base’s.
How many days before a document of this type expires its requirement counts as expiring soon, overriding the document type’s default.
object
Validity periods per document type, replacing what the document states; a Policy that builds on another overrides the base’s.
How long a document of this type counts, from its issue date, for example an A1 request acknowledgement you accept for 60 days.
object
first_document counts every document of the type from the worker’s first one, so a later one, such as a second A1 request, cannot extend the period. Defaults to each_document.
Requirements for Assignments with one of the job’s role codes.
object
Role codes that select this job, such as welder or your own job code.
Human-readable name shown in Dockt and customer systems.
object
Human-readable name shown in Dockt and customer systems.
object
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Deprecated and ignored: what a qualification teaches is in the qualification catalogue. Set equivalents on an accepted qualification instead.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
Met by any document or qualification on a list of the Policy or the Policy it builds on.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
object
A qualification as a Policy names it; a null definition id resolves by code, title or alias when the Policy is compiled.
object
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Human-readable name shown in Dockt and customer systems.
Whether a qualification Dockt compares as equivalent counts too. accept: equal and greater ones count, partial and unclear ones go to review. review: every equivalent goes to review. review_when_unclear: equal and greater ones count, lesser, partial and unclear ones go to review. Absent: only this qualification counts.
Deprecated and ignored: what a qualification teaches is in the qualification catalogue. Set equivalents on an accepted qualification instead.
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
Met by any document or qualification on a list of the Policy or the Policy it builds on.
object
object
Condition on a discovered document metadata key. By default a document that contradicts it, or whose value is unknown, does not count as evidence for the rule.
object
object
object
object
The address the document names is the Workplace’s.
object
What a document that contradicts the condition counts as. Defaults to exclude.
What a document whose value is unknown counts as. Defaults to exclude.
Only documents of these types are checked; others count as they are.
object
An uploaded document must prove the job’s qualifications, not only a registry.
Examples checked at activation.
A worker situation and the rules you expect. Checked at activation; a failing example blocks it.
object
Human-readable name shown in Dockt and customer systems.
Rules that must apply: your rules and the base Policy’s by code, package rules as <package>.<rule_code>.
Rules that must not apply.
Days between re-checks of open work against registries (company, credential and document registries). Defaults to 7; a Policy that builds on another overrides the base’s.
The version in the policy language: the source it was saved as, comments included, or its definition printed when it was saved as a definition.
ISO 8601 date-time string.
Example
{ "object": "single", "data": { "object": "policy_version", "id": "plv_example", "policy": { "id": "pol_example" }, "status": "draft", "definition": { "rules": [ { "applies_when": { "kind": "always" }, "expectation": { "kind": "fact_comparison", "operator": "equals" }, "enforcement": "required", "applies_to": "assignment" } ], "lists": [ { "items": [ { "kind": "document", "document_conditions": [ { "check": { "kind": "one_of" }, "on_mismatch": "exclude", "on_unclear": "exclude" } ] } ] } ], "overrides": [ { "target": { "source": "compliance_package" }, "enforcement": "required", "qualification_comparison_policy": { "mode": "accepted_only" }, "applies_when": { "kind": "always" }, "expectation": { "kind": "fact_comparison", "operator": "equals" }, "remove": [ { "kind": "document" } ], "require_also": [ { "kind": "fact_comparison", "operator": "equals" } ], "accept_also": [ { "kind": "fact_comparison", "operator": "equals" } ], "apply_only_when": [ { "kind": "always" } ], "apply_also_when": [ { "kind": "always" } ] } ], "list_overrides": [ { "accept_also": [ { "kind": "document", "document_conditions": [ { "check": { "kind": "one_of" }, "on_mismatch": "exclude", "on_unclear": "exclude" } ] } ], "remove": [ { "kind": "document" } ] } ], "document_validity": [ { "counts_from": "each_document" } ], "jobs": [ { "rules": [ { "applies_when": { "kind": "always" }, "expectation": { "kind": "fact_comparison", "operator": "equals" }, "enforcement": "required" } ] } ] }, "created_at": "2026-08-06T09:30:00Z", "activated_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"}