Update canary settings
PATCH
/canary/settings
const url = 'https://example.com/api/v1/canary/settings';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"enabled":true,"defaultMaxBatchSize":1,"autoSelect":true,"defaultCanaryInstanceId":1,"defaultPartialPolicy":"gate"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/canary/settings \ --header 'Content-Type: application/json' \ --data '{ "enabled": true, "defaultMaxBatchSize": 1, "autoSelect": true, "defaultCanaryInstanceId": 1, "defaultPartialPolicy": "gate" }'Updates the opt-in enable flag, default batch size, auto-select, default canary instance,
and default partial policy. defaultMaxBatchSize must be an integer >= 1.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
Responses
Section titled “Responses”Updated canary settings
Media typeapplication/json
object
enabled
required
Opt-in. When false the staged flow is hidden and start falls through to a plain sync.
boolean
defaultMaxBatchSize
required
integer
autoSelect
required
Allow least-critical auto-pick when no explicit or default canary is set.
boolean
defaultPartialPolicy
required
How a partial canary outcome is treated:
gate: pass-with-warning; continue to the verification gateabort: treat as failure; remaining instances are never touched
string
Example
{ "defaultPartialPolicy": "gate"}Invalid settings payload
Media typeapplication/json
object
error
required
Error message
string
Examplegenerated
{ "error": "example"}Failed to update canary settings
Media typeapplication/json
object
error
required
Error message
string
Examplegenerated
{ "error": "example"}