WorkflowsResource
object
Full CRUD access to Modus workflows.
mgmt.workflows.list() → Page[Agent] mgmt.workflows.get(workflow_id) → Agent (with variation fields) mgmt.workflows.create(name, type) → Agent mgmt.workflows.update(workflow_id, ..) → Agent mgmt.workflows.deploy(workflow_id) → Agent mgmt.workflows.delete(workflow_id) → None
list()
-
Parameters:
- page_size – Maximum number of items to return (default 25).
-
page_token – Token from a previous page’s
next_page_token; omit for the first page. - search – Case-insensitive substring filter on the workflow name.
-
type – Filter by workflow type:
"task"or"workflow". -
view – Variation view —
"active"(deployed) or"draft". - include_variation – Include variation payload on each list row.
get()
interfaces()
workflow_id.
create()
-
Parameters:
- name – Display name for the workflow.
-
type –
"task"for single-step skill orchestration, or"workflow"for a multi-step graph. -
guardrails – Runtime guardrail labels (for example
"no-pii"). When set, the workflow is created with these labels under the organisation default sharing rules. Omit (None) to create with no guardrails. ACL fields cannot be set from the SDK.
update()
update_mask (a comma-separated list of field names) and leave its argument unset — the server sets each masked field to null and leaves fields not named in the mask untouched.
-
Parameters:
guardrails – Runtime guardrail labels to set on the workflow. Fetches the current workflow first and merges these labels into its access configuration (an extra
getrequest). Omit (None) to leave guardrails unchanged. Pass[]to clear all guardrails.
deploy()
- Parameters: workflow_id – Workflow to publish.
- Returns: The workflow with its newly published configuration.
toggle()
delete()
- Parameters: workflow_id – Workflow to remove.
request_ownership_transfer()
cancel_ownership_transfer()
accept_ownership_transfer()
restore()
AsyncWorkflowsResource
object
list()
-
Parameters:
- page_size – Maximum number of items to return (default 25).
-
page_token – Token from a previous page’s
next_page_token; omit for the first page. - search – Case-insensitive substring filter on the workflow name.
-
type – Filter by workflow type:
"task"or"workflow". -
view – Variation view —
"active"(deployed) or"draft". - include_variation – Include variation payload on each list row.
get()
interfaces()
workflow_id.
create()
-
Parameters:
- name – Display name for the workflow.
-
type –
"task"for single-step skill orchestration, or"workflow"for a multi-step graph. -
guardrails – Runtime guardrail labels (for example
"no-pii"). When set, the workflow is created with these labels under the organisation default sharing rules. Omit (None) to create with no guardrails. ACL fields cannot be set from the SDK.
update()
update_mask (a comma-separated list of field names) and leave its argument unset — the server sets each masked field to null and leaves fields not named in the mask untouched.
-
Parameters:
guardrails – Runtime guardrail labels to set on the workflow. Fetches the current workflow first and merges these labels into its access configuration (an extra
getrequest). Omit (None) to leave guardrails unchanged. Pass[]to clear all guardrails.
deploy()
deploy for argument details.
toggle()
toggle for argument details.
delete()
delete for argument details.
request_ownership_transfer()
cancel_ownership_transfer()
accept_ownership_transfer()
restore()
WorkflowInterfacesResource
object
list()
create()
- Parameters: interface – Interface configuration to attach, as a DTO or plain mapping.
update()
delete()
delete_all()
AsyncWorkflowInterfacesResource
object
list()
create()
- Parameters: interface – Interface configuration to attach, as a DTO or plain mapping.
update()
-
Parameters:
- interface_id – Identifier of the interface to update.
- interface – Updated interface values.
- update_mask – Optional comma-separated list of fields to update.
delete()
- Parameters: interface_id – Identifier of the interface to delete.