Create a rig
Create a rig. Without git_url, appends the rig to city.toml synchronously (201). With git_url, clones and provisions asynchronously: returns 202 with an event_cursor — watch the city event stream for request.result.rig.create, rig.provision.progress, or request.failed carrying the request_id — or 200 for an idempotent replay of a succeeded create.
post/v0/city/{cityName}/rigs
Request
- The document declares no server URL.
- Auth: none declared. Required headers: X-GC-Request
Path parameters
cityNamestring required
City name.
Headers
X-GC-Requeststring required
Anti-CSRF header required on mutation requests. Any non-empty value is accepted; the header's presence is what the server checks.
Idempotency-Keystring
Idempotency key for safe retries (synchronous create).
Request body
Response
Rig already exists — idempotent request_id replay of a succeeded async create.
Changes
No recorded changes to this operation across all 50 revisions of this API.