agents.price-catalog-sync ​
Sync the built-in model pricing catalog to the global AgentPriceConfig table
Synchronise PRICING_CATALOG to global (org=NULL) AgentPriceConfig rows.
For each catalog entry:
- If an active row exists with identical prices, skip it.
- If prices differ, retire the existing row (set effective_until = today) and insert a new one.
- If no active row exists, insert a new one.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-agents |
| Version | 1.0 |
Triggers ​
| Source | Endpoint / Event | Description |
|---|---|---|
| INTERNAL | schedule.sync | Internal — triggered by the pricing sync scheduler |
Input Schema ​
No input fields required.
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
records_upserted | integer | No | — | — |
records_skipped | integer | No | — | — |
synced_at | string | No | — | — |
failure_reason | string | No | — | — |
failed_at | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | json | No | — | — |
error | string | No | — | — |
error_type | string | 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.price-catalog-sync",
"initial_data": { }
}