agents.org-settings.upsert ​
Create or update agent org settings for an organisation
Create or update the AgentOrgSettings row for an organisation.
Only fields explicitly present in input_data are modified; absent optional fields are left at their current (or default) values.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-agents |
| Version | 1.0 |
Triggers ​
| Source | Endpoint / Event | Description |
|---|---|---|
| API | PUT /api/agents/org-settings | Create or update agent org settings |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | — |
max_concurrent_sessions | integer | No | — | — |
max_sessions_per_hour | integer | No | — | — |
max_session_duration_s | integer | No | — | — |
memory_enabled | boolean | No | — | — |
code_exec_enabled | boolean | No | — | — |
shell_exec_enabled | boolean | No | — | — |
mcp_enabled | boolean | No | — | — |
platform_default_mcp_disabled | boolean | No | — | — |
default_runner_group_uuid | string | No | — | — |
ft_export_enabled | boolean | No | — | — |
notify_on_session_fail | boolean | No | — | — |
notify_on_session_complete | boolean | No | — | — |
notify_on_budget_alert | boolean | No | — | — |
notify_slack_webhook_url | string | No | — | — |
notify_email | string | No | — | — |
default_budget_usd | float | No | — | — |
lumen_project_name | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
error | string | No | — | — |
error_type | string | No | — | — |
failed_at | string | No | — | — |
failed_at_state | string | No | — | — |
failed_layer | json | No | — | — |
failed_step | string | No | — | — |
failure_reason | string | No | — | — |
organization_uuid | json | No | — | — |
updated | json | No | — | — |
max_concurrent_sessions | json | No | — | — |
max_sessions_per_hour | json | No | — | — |
max_session_duration_s | json | No | — | — |
memory_enabled | json | No | — | — |
code_exec_enabled | json | No | — | — |
shell_exec_enabled | json | No | — | — |
mcp_enabled | json | No | — | — |
platform_default_mcp_disabled | json | No | — | — |
default_runner_group_uuid | json | No | — | — |
ft_export_enabled | json | No | — | — |
notify_on_session_fail | json | No | — | — |
notify_on_session_complete | json | No | — | — |
notify_on_budget_alert | json | No | — | — |
notify_slack_webhook_url | json | No | — | — |
notify_email | json | No | — | — |
default_budget_usd | json | No | — | — |
lumen_project_name | json | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | run | — |
run | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | run | run | — |
run | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "agents.org-settings.upsert",
"initial_data": {
"organization_uuid": "value"
}
}