{ "opencollection": "1.0.0", "info": { "name": "Amigo Account Scheduling Rules API", "version": "0.1.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Scheduling Rules", "type": "folder" }, "items": [ { "info": { "name": "List scheduling rule sets", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/scheduling-rule-sets", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "agent_kind", "value": "", "type": "query" }, { "name": "is_active", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" }, { "name": "continuation_token", "value": "", "type": "query" } ] }, "docs": "List all scheduling rule sets for the workspace. Optional filters: `agent_kind` (tms / ketamine / general), `is_active`. Used by the agent-engine rules engine and by operators inspecting config." }, { "info": { "name": "Create a scheduling rule set", "type": "http" }, "http": { "method": "POST", "url": "https://api.amigo.ai/v1/:workspace_id/scheduling-rule-sets", "params": [ { "name": "workspace_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create one rule set for `(agent_kind, rule_kind)`. Returns 409 if a row already exists for that key — use PATCH on the existing row or DELETE first." }, { "info": { "name": "Get one scheduling rule set", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/scheduling-rule-sets/:rule_set_id", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "rule_set_id", "value": "", "type": "path" } ] }, "docs": "Fetch one rule set by id. Returns 404 when the row doesn't exist\nin this workspace (the RLS policy means cross-workspace lookups\nsurface as 404, never as a row from the wrong workspace).\n\nPermissions: ``Workspace.view``." }, { "info": { "name": "Partially update a scheduling rule set", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.amigo.ai/v1/:workspace_id/scheduling-rule-sets/:rule_set_id", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "rule_set_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update `params` and/or `is_active` on an existing rule set. `agent_kind` and `rule_kind` are immutable — to change either, create a new rule set and delete the old one." }, { "info": { "name": "Delete a scheduling rule set", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.amigo.ai/v1/:workspace_id/scheduling-rule-sets/:rule_set_id", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "rule_set_id", "value": "", "type": "path" } ] }, "docs": "Hard-delete. The audit log retains the deletion record." } ] } ], "bundled": true }