Replies: 1 comment 1 reply
-
(Aside: you should use In cases where a field cannot have multiple values, then repeating the query normally acts as a logical "OR". For example:
will return devices where the name is nuc1 or nuc2. However, I've tested it and you're correct that this doesn't work for (EDIT: it's the same for |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a small question about the API:
I am using this request :
/api/extras/config-contexts/?name=config1&&name=config2
With this, I have the expected behavior, I receive both config-context :
config1
&config2
Now when I am using this request :
/api/extras/custom-fields/?name=custom1&&name=custom2
I don't have the behavior that I need, I receive only the last element
custom2
and not both.However I read it from the documentation : https://netbox.readthedocs.io/en/stable/rest-api/filtering/
However, a logical AND operation will be used in instances where a field may have multiple values, such as tags
But here, for custom-fields, the field name can't have multiple values, can it?
Is this a bug, a normal behavior or am I doing it wrong?
Thanks in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions