Set the merge gates
Replace the project's merge gates. Send the whole object (read it with ops trail-gates get first).
Replace the project's merge gates. Send the whole object (read it with
ops trail-gates get first).
Require two approvals and block on medium findings.
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. Optional — defaults to the project the SDK key belongs to; pass it only to scope a multi-project key (the generated client sets it once from its configuration, so per-call callers never thread it).
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
curl -X PUT "https://shipeasy.ai/api/admin/trail-gates" \ -H "Content-Type: application/json" \ -d '{ "upToDate": { "enabled": true, "blocking": false }, "humanReview": { "enabled": true, "blocking": true, "minApprovals": 1, "resetOnPush": true }, "agentReview": { "enabled": true, "blocking": true, "severity": "high" }, "evals": { "enabled": true, "blocking": true }, "checks": { "enabled": true, "blocking": true, "required": [] } }'{
"upToDate": {
"enabled": true,
"blocking": true
},
"humanReview": {
"enabled": true,
"blocking": true,
"minApprovals": 1,
"resetOnPush": true,
"authorCanApprove": false
},
"agentReview": {
"enabled": true,
"blocking": true,
"severity": "high"
},
"evals": {
"enabled": true,
"blocking": true
},
"checks": {
"enabled": true,
"blocking": true,
"required": [
"string"
]
},
"discovered": {
"enabled": true,
"blocking": true,
"priority": "nice_to_have"
},
"shipsDark": {
"enabled": false,
"blocking": false
},
"rollback": {
"enabled": false,
"blocking": false
},
"measured": {
"enabled": false,
"blocking": false
},
"guarded": {
"enabled": false,
"blocking": false
},
"copy": {
"enabled": false,
"blocking": false
},
"plan": {
"enabled": true,
"blocking": true
},
"requirePlan": true,
"fixRounds": 3,
"goalWindowDays": 7,
"maxGoalReplans": 3,
"maxParallelRuns": 3,
"attributionWindowHours": 72,
"rollout": {
"steps": [
1,
5,
25,
50,
100
],
"holdMinutes": 0,
"minExposure": 0,
"internal": {
"holdMinutes": 0
},
"guards": {
"alertRuleIds": [
"string"
],
"attributedErrors": true
},
"policies": {
"onBreach": "pull_back",
"breachTimeoutMinutes": 1,
"advance": "auto",
"afterFix": "resume"
}
},
"autopilot": {
"maxRisk": 0,
"repos": [
"string"
],
"types": [
"feature"
],
"maxFixRounds": 0,
"maxPullBacks": 0,
"maxRuns": 0
},
"intakeMatching": true,
"repos": {
"property1": {
"checks": {
"required": [
"string"
]
}
},
"property2": {
"checks": {
"required": [
"string"
]
}
}
}
}{
"error": "Malformed request (bad JSON, missing project scope).",
"code": "BAD_REQUEST"
}{
"error": "Missing or invalid admin SDK key.",
"code": "UNAUTHORIZED"
}{
"error": "Key is valid but not allowed to act on this project.",
"code": "FORBIDDEN"
}{
"error": "The request body failed structural (schema) validation.",
"code": "VALIDATION"
}Show the merge gates
The project's merge gates for trail changes — branch freshness, human review, agent findings, blocking evals and CI checks — each with whether it is…
List trails
Returns the project's trails, newest activity first. A trail is the unit of shipping: an outcome that takes several items, pull requests and release tools,…