You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling a list() function or similar, the API often accepts a boolean parameter for filtering results. For example, the \REPORTS\GET endpoint allows a boolean filter for archived status.
When the results are returned with the Python client, these fields are properly cast as Python boolean values. But when trying to pass in the parameter to the query, the client requires the value to be passed as a string instead.
Current behavior
When calling a
list()
function or similar, the API often accepts a boolean parameter for filtering results. For example, the\REPORTS\
GET
endpoint allows a boolean filter forarchived
status.When the results are returned with the Python client, these fields are properly cast as Python boolean values. But when trying to pass in the parameter to the query, the client requires the value to be passed as a string instead.
Example
This fails:
CivisAPIError: (400) Invalid archived status 'False'.
But this succeeds:
Expected behavior
Use the native data type(s) for the language, and parse those into whatever structure is needed for the url path on the API call.
The text was updated successfully, but these errors were encountered: