Skip to content

V2 refuses unknown query parameters

A V2 request that sends a query parameter its operation does not support now fails with 400 and code BSPORT-400, instead of ignoring the parameter: a list no longer returns unfiltered results for a misspelled filter. Filters, ordering, page, page_size, expand[] and the other parameters an operation documents, such as fields on clients, keep working.

The response lists each problem in invalid_params, with the closest supported name in suggestion when there is one, and links to Query parameter errors in doc_url. An invalid filter value now uses the same body, with reason invalid_value: {"ids": ["Enter a number."], "status": 400} becomes an invalid_params entry for ids. A boolean filter such as is_archived now refuses a value other than true, false, 1 or 0 instead of ignoring it, and an empty ID list such as ids= is refused instead of returning every result; any other empty value still means no filter.

This applies to every V2 operation, creates and actions included. An unsupported ordering field is still ignored. Compare the parameters your integration sends with each operation's parameters in the API Reference.