-
|
Hello, I'm working with the Keygen API and have a question about how query filters behave when multiple filters are applied to the same endpoint. The IssueWhile using the
ExampleFor instance, when trying to filter users by both status and metadata: It seems only one filter is respected, rather than both being applied cumulatively. Questions
Any clarification on how filters interact with each other across different endpoints would be greatly appreciated! Thanks in advance for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Filters can be combined, including curl -vg -u token:$KEYGEN_TOKEN 'https://api.keygen.sh/v1/accounts/demo/users?status=active&metadata[foo]=bar'This should work fine. If not, please provide a link to a request log of this occurring and I'll reopen. |
Beta Was this translation helpful? Give feedback.
Filters can be combined, including
metadata. This is likely user error. If you're usingcurl, this could be because you're 1) not using the-gflag to support brackets i.e.[], or 2) not quoting the URL string (the&query param separator is a special Shell keyword for background tasks). You may also be providing the metadata incorrectly, e.g. improper query param encoding, etc.This should work fine. If not, please provide a link to a request log of this occurring and I'll reopen.