Bearbeitbare Regeln lesen
get_policy_write_optionsRead editable policies and their write revisions before an explicit change. Use list_policies for recorded identities, get_policy for confirmed content, and get_policy_history for comparisons.
moduleKey and policyKey filter the supported policies. An unsupported pair returns options=[]; the read never substitutes another policy. A module Owner denial omits that policy's adapter, while shared authorization failures are errors. A supported policy that is not configured yet still has a revision for its first configuration.
Choose one element of the returned options array. Copy that element's moduleKey, policyKey and expectedRevision together into prepare_policy_change, with the complete value the user requested. That same element's proposed field is an adapter-supplied suggestion, not the user's request or approval. For an explicit automation stop, use deactivate_policy only when canDeactivate=true; a confirmed disabled value remains current.
Requires policy:read/write and current Owner/module access. Reading prepares and applies nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| moduleKey | No | Omit for all supported modules; otherwise copy a module key from a recorded list_policies identity or an earlier get_policy_write_options result. | |
| policyKey | No | Select one supported editable policy together with its moduleKey; omit for every editable policy in the selected module. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | Yes |