scf_add_capability_test_finding
Add a finding to a capability test as a linked deficiency, with title, priority, and due date. Use it when a test reveals an issue; if the test passed, correct its result instead.
Instructions
Add a finding to a capability test (write — editor); it is recorded as a deficiency linked to the test. Refused on a test recorded as passed: correct its result instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Short title of the finding (1–255 chars, non-blank) | |
| org_id | Yes | Organization UUID — obtain from scf_list_organizations | |
| scf_id | No | Control the finding is against, if any — must be in scope (422 otherwise) | |
| test_id | Yes | Capability test UUID — obtain from scf_list_capability_tests | |
| due_date | No | Due date (YYYY-MM-DD) | |
| priority | No | Priority: critical, high, medium, low (platform default medium) | |
| risk_code | No | Risk the finding is against, if any — must be assessed | |
| owner_name | No | Free-text owner | |
| root_cause | No | Why the finding arose | |
| description | No | What was found | |
| owner_user_id | No | Owner user — must be a member of the organisation (404 otherwise); see scf_list_members |