save_sop
Create (without sop_id) or update (with sop_id) a SOP of the user's organization. Owners/admins only. steps = ordered list of {title, body?, role?} (max 40). outpost_ids = the outposts it applies to (from list_clients; omit = all). status=archived archives it, status=active restores it. Max 10 active SOP: the 11th is refused with limit_reached. Show the user the title and steps before saving.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | ||
| title | No | ||
| sop_id | No | Omit to create a new SOP. | |
| source | No | Where it comes from, e.g. "crm:sop#30". | |
| status | No | ||
| schedule | No | Free text, e.g. "daily 08:30" or "Monday". | |
| confirm_id | No | Token di conferma ritornato dall'anteprima. Ripassa lo STESSO payload + confirm_id per eseguire davvero la scrittura. | |
| description | No | ||
| outpost_ids | No |