Create a killswitch
Creates a new killswitch with value (default false) applied to every env at version 1.
Returns 409 if name already exists in the project.
- Untripped create —
{ "name": "payments.checkout" }. Provision the kill ahead of an incident. - Pre-tripped —
{ "value": true }to ship the killswitch already engaged. - With switches — seed
switchesto carve out per-region/per-tenant kills from day one.
Authorization
bearerSdkKey Pass an admin SDK key as Authorization: Bearer sdk_admin_…. Mint via POST /api/admin/keys with type: "admin".
In: header
Header Parameters
Project the request operates on. Must match the project the SDK key belongs to.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://shipeasy.ai/api/admin/killswitches" \ -H "X-Project-Id: string" \ -H "Content-Type: application/json" \ -d '{ "name": "payments.checkout" }'{
"id": "ksw_01j7w9d8h2k4m6n8p0q2r4s6t8",
"name": "payments.checkout"
}{
"error": "string",
"code": "string",
"detail": "string"
}{
"error": "string",
"code": "string",
"detail": "string"
}{
"error": "string",
"code": "string",
"detail": "string"
}{
"error": "string",
"code": "string",
"detail": "string"
}{
"error": "string",
"code": "string",
"detail": "string"
}{
"error": "string",
"code": "string",
"detail": "string"
}