patch
https://api.usetradecraft.io/v1/agents/
Update an agent's status or cash allocation. All fields are optional —
only include the ones you want to change.
Status transitions
| From | To | Effect |
|---|---|---|
active | paused | Agent stops accepting new orders |
paused | active | Agent resumes accepting orders |
active / paused | disabled | Permanently disabled, cannot be re-enabled |
Adjusting cash
Increasing allocation deducts from your unallocated balance. Decreasing
it returns cash to the unallocated pool.
# Pause an agent
curl -X PATCH https://api.usetradecraft.io/v1/agents/momentum-trader \
-H "Authorization: Bearer al_your_key" \
-H "Content-Type: application/json" \
-d '{ "status": "paused" }'
# Increase allocation
curl -X PATCH https://api.usetradecraft.io/v1/agents/momentum-trader \
-H "Authorization: Bearer al_your_key" \
-H "Content-Type: application/json" \
-d '{ "cash_allocation": 7500 }'Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
