scf_create_deficiency
Create a deficiency record against an in-scope control or assessed risk. Requires organization ID, title, and at least one of control or risk code; starts open.
Instructions
Raise a deficiency by hand (write — editor) against an in-scope control, an assessed risk, or both. At least one of scf_id or risk_code is required. Starts open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Short title (1–255 chars, non-blank) | |
| org_id | Yes | Organization UUID — obtain from scf_list_organizations | |
| scf_id | No | Control the deficiency is against — must be in scope (422 otherwise); obtain from scf_list_scoped_controls | |
| due_date | No | Due date (YYYY-MM-DD) | |
| priority | No | Priority: critical, high, medium, low (platform default medium) | |
| risk_code | No | Risk the deficiency is against — must be one the organisation has assessed (422 otherwise) | |
| owner_name | No | Free-text owner | |
| root_cause | No | Why the deficiency arose | |
| description | No | What is deficient | |
| owner_user_id | No | Owner user — must be a member of the organisation (404 otherwise); see scf_list_members |