For AI agents: a Markdown version of this page is at https://docs.snowplow.io/docs/api-reference/snowbridge/upgrade-guides/upgrade-guide-4-X-X.md. The index of all documentation pages is at https://docs.snowplow.io/llms.txt, and the index for this section is at https://docs.snowplow.io/docs/api-reference/llms.txt.
Snowbridge 4.x upgrade guide
Version 4.0.0 Breaking Changes
HTTP target: ordered response rule evaluation
Breaking change: response rules are now evaluated in the order they are defined in the configuration, rather than being organized in separate invalid and setup blocks.
Migration required: you must update your HTTP target configuration to specify a type attribute for each rule:
Before:
hcl
response_rules {
invalid {
http_codes = [400]
body = "Invalid value for 'purchase' field"
}
setup {
http_codes = [401, 403]
}
}
After (4.0.0):
hcl
response_rules {
rule {
type = "invalid"
http_codes = [400]
body = "Invalid value for 'purchase' field"
}
rule {
type = "setup"
http_codes = [401, 403]
}
}
Important: rules are now evaluated in the order they appear in your configuration. The first matching rule determines the error type.