Start a run
Starts a run of the suite's current version and allocates every resource the definition declares: a fresh inbox address, callback URL, mock URL or route label each, unguessable and unique to this run. The run is active until it is finished, cancelled or its TTL passes, after which its resources stop accepting activity and its timeline is read-only. Send an Idempotency-Key to make a retry return the run it already started (200 rather than 201). An organisation may have at most 50 active runs at once (a run is active until it is finished, cancelled or its TTL passes); the next start is refused with 429 active_run_limit until one ends. The limit is capacity, the same on every account. Needs rig.run. Public effect: the allocated addresses and URLs are reachable from the Internet for the life of the run.
Request
- Base URL: https://api.ironfang.com/rig
- URL: https://api.ironfang.com/rig/v1/suites/{suiteId}/runs
- Auth: one of:
- HTTP bearer
- HTTP bearer
Headers
Makes starting a run safe to retry. Any string up to 200 characters; surrounding whitespace is ignored and a longer key is a 422 invalid_request. The same key in this organisation returns the run it first started, with its resources and 200 rather than 201, for as long as that run is kept. The request is not compared with the first, so there is no conflict response.
Request body
Example request
{
"ttl": "30m"
}Response
The run this Idempotency-Key already started
Changes
No recorded changes to this operation across all 1 revision of this API.