scf_set_framework_basis
Set or clear MCR/DSR basis, obligation type, and source for an active scoped framework, replacing all three values. Use for admin-only scope justification.
Instructions
Record why a scoped framework is in scope (write — ADMIN role): basis mcr|dsr, obligation_type and obligation_source. Replaces all three; null clears. Only an active (scoped) framework, else 404.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| basis | Yes | 'mcr' (mandatory compliance requirement) or 'dsr' (discretionary security requirement); null leaves it unclassified. Reclassifying MCR to DSR changes which exclusions need an approver, hence admin-only | |
| org_id | Yes | Organization UUID — obtain from scf_list_organizations | |
| framework_id | Yes | Framework slug of a framework the org has scoped — obtain from scf_get_framework_scope_summary | |
| obligation_type | No | Where the obligation comes from: statutory, regulatory, contractual or discretionary; omitted or null clears it | |
| obligation_source | No | The law, regulation or contract behind it (max 2000 characters); omitted, null or blank clears it |