Intelligence APIOperational
communities.conformitySelftestPost
Self-assessment within the product
درخواست
امتحان کنید
Available · MCP tool nxs.communities.conformity_selftest · No credits
POST/v1/communities/conformity/selftest
curl -s -X POST "https://api.nexustandards.com/v1/communities/conformity/selftest" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: <a-unique-key-per-attempt>" \
-d '{"standard":"NS-0","results":[{"requirement":"NS0-R1","result":"pass"},{"requirement":"NS0-R2","result":"fail"}]}'const res = await fetch("https://api.nexustandards.com/v1/communities/conformity/selftest", { method: "POST", headers: { "Content-Type": "application/json", "Idempotency-Key": "<a-unique-key-per-attempt>" }, body: "{\"standard\":\"NS-0\",\"results\":[{\"requirement\":\"NS0-R1\",\"result\":\"pass\"},{\"requirement\":\"NS0-R2\",\"result\":\"fail\"}]}" });
const { data, meta } = await res.json();import json, urllib.request
req = urllib.request.Request("https://api.nexustandards.com/v1/communities/conformity/selftest", data="{\"standard\":\"NS-0\",\"results\":[{\"requirement\":\"NS0-R1\",\"result\":\"pass\"},{\"requirement\":\"NS0-R2\",\"result\":\"fail\"}]}".encode(), method="POST", headers={"Content-Type": "application/json", "Idempotency-Key": "<a-unique-key-per-attempt>"})
with urllib.request.urlopen(req) as res:
answer = json.load(res)200 OKapplication/json
{
"data": {
"assessmentKind": "self-assessment",
"standards": [
{
"standard": {},
"requirementsInRegister": 3,
"withdrawnExcluded": 0,
"assessed": 2,
"byResult": {},
"coverage": 0.6667,
"notAssessed": [],
"failed": []
}
],
"requirementsInRegister": 3,
"assessed": 2,
"coverage": 0.6667,
"byResult": {
"pass": 1,
"fail": 1,
"not-applicable": 0,
"not-assessed": 1
},
"unknownRequirements": [],
"duplicateEntries": [],
"evidenceNotes": 0,
"statement": "This is a self-assessment against a draft register. It is no…"
},
"meta": {
"coverage": {
"status": "full",
"records": 1,
"links": {
"index": "partial: NHS-1 families and NIS-1 domains by identical code …",
"external": "full: every crosswalk target is an entry of the external sta…",
"grf": "none: no GRF obligation identifiers are published yet (posit…",
"academy": "none: no Academy competency identifiers are published yet (p…",
"protocol": "none: no observation-profile identifiers are published yet",
"reports": "none: no finding identifiers are published yet"
}
},
"authority": "Nexus Standards (Secretariat, GCRI Canada)",
"provenance": {
"repository": "nexus-estate/nexus-wp",
"commit": "89ebc662668b521c30c7556124c094ef33f065ca",
"path": "the network's own records",
"sha256": "f9b9b39996d01be1e4eed9a7bbe76986c82a5e145783af5bc7c43f0ffda8…",
"licence": "CC-BY-4.0",
"snapshotAt": "2026-11-22T22:46:01+00:00",
"origin": {
"repository": "nexus-estate/nexus-standards-full",
"commit": "a538df2772801f2d2bfa1fe9e0404ae4ea7b2b9b",
"path": "machine/site-feed.json",
"sha256": "f9b9b39996d01be1e4eed9a7bbe76986c82a5e145783af5bc7c43f0ffda8…"
}
},
"stored": false,
"subsite": "communities",
"productSlug": "communities",
"note": "Nothing was stored. Coverage is the share of register requir…",
"snapshot": {
"digest": "153e8c78269d753e5e4276840d2f5039daf6aea19f9d354db7235e3e3925…",
"snapshotAt": "2026-11-22T22:46:01+00:00"
},
"service": "nxs-standards-api",
"version": "0.9.0",
"method": {
"id": "self-assessment-coverage",
"version": "1.0.0",
"href": "/v1/methods/self-assessment-coverage"
},
"replication": {
"digest": "fe6adbf8a00dbafee8544b777f51ffdac665620cc1855352c6735fac66a9…",
"inputsDigest": "e30da1ee481835e23072d10b43fd96fe51f7a3b0ffa3eb8b32fead8d478a…",
"methodVersion": "1.0.0",
"snapshotDigest": "153e8c78269d753e5e4276840d2f5039daf6aea19f9d354db7235e3e3925…",
"sourceCommits": [
"4a7662f4cc254b5c8ef373764ca8b953775c114e"
]
},
"interval": {
"status": "none",
"basis": "Coverage is an exact ratio of two counts, not a sample estim…"
}
}
} An answer this API gave, shortened. Values change with the data.
As /v1/conformity/selftest; every standard must be in the product scope (400 OUT_OF_SCOPE otherwise). A self-assessment, never a conformance claim. Nothing is stored. Availability: Available.
Parameters
Parameters
Idempotency-Keyاختیاریheader · string
Optional. A value of your own (a UUID is fine) that makes this write safe to retry: the same caller, key and request within 24 hours gets the first answer again, with the header Idempotent-Replayed: true, and the work is not done twice. It applies to a request that carries a credential.
Answers
Responses
- 200
Records with provenance and coverage
- 400Problem, RFC 9457
Bad request (stable code in the problem)
- 401
- 409
- 413Problem, RFC 9457
Body too large
- 414
- 422
- 429Problem, RFC 9457
Open-tier rate limit
- 500Problem, RFC 9457
Internal error
شروع کنید
Get a key with a free account, or choose who the account is for, its seats and any council, and see your workstation first.