Update Channel Health Thresholds
PUT/api/channel-health/thresholds
Bulk upserts warn thresholds and returns the full effective list. Statuses and alerts are re-evaluated straight away.
channel-health:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Body: thresholds (array, 1–200 items), each with:
metric(string, required): metric keychannel(string, required): amazon or walmartintegration_instance_id(integer, optional): null for the tenant default, an instance ID for an overridewarn_value(number, optional): null restores the default warn levelclear_margin(number, optional, 0–100, default 0.5)min_denominator(integer, optional, 0–1000000, default 10)small_sample_warning(boolean, optional, default true)enabled(boolean, optional, default true)
Returns 422 when a warn level is on or past the marketplace target (a warn level can only be stricter than the target) or when the metric isn't monitored on the channel; errors are keyed thresholds.<index>.<field>.
Authentication: Bearer token (Personal Access Token) with the channel-health:write scope. The user needs the Alert Preferences › Update permission.
Request
Responses
- 200
- 401
- 403
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.