Preflight a campaign launch
GET/campaign/:id/preflight
Runs the checks a launch with the same executor would run, without queueing anything: ok is false and problems says why when the launch would be refused. Both executors need a caller of the campaign's organization (ACCOUNT_INVALID) and an agent type the executor can run (AGENT_TYPE_NOT_SUPPORTED). The cloud also needs a cloud worker on this installation (CLOUD_UNAVAILABLE), the minimum credit balance (INSUFFICIENT_CREDITS), an agent and spec it can reach and load (AGENT_NOT_CLOUD_RUNNABLE, AGENT_NEEDS_CONFIGURATION, SPEC_NOT_CLOUD_RUNNABLE), every secret the spec references (MISSING_SECRETS), and a free slot under the organization's limit of concurrent cloud runs (CLOUD_CONCURRENCY_LIMIT).
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
OK
The saved spec no longer validates (spec), or executor is invalid.
Missing, invalid, expired or revoked credential, or a credential this endpoint does not accept.
The credential may not do this: for example a run token outside its own run, or a caller without an organization.
Not found: no such object in the caller's organization.
Rate limited: retry after the number of seconds in the Retry-After header.