Flags experimentsApiOperations
Discard a draft
Drops the in-flight draft on one env. Published values are unaffected.
Use case
Abandon an in-progress draft after deciding not to ship it.
Authorization
bearerSdkKey AuthorizationBearer <token>
Pass an admin SDK key as Authorization: Bearer sdk_admin_…. Mint via POST /api/admin/keys with type: "admin".
In: header
Path Parameters
id*string
Stable opaque config id.
Header Parameters
X-Project-Id*string
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 DELETE "https://shipeasy.ai/api/admin/configs/string/drafts" \ -H "X-Project-Id: string" \ -H "Content-Type: application/json" \ -d '{ "env": "dev" }'{
"ok": true
}{
"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"
}