I am using the REST API in order to do some cleanup. One aspect of this is to update the sub_type field on SR’s that are using old sub_type forms which I want to remove.
I tried issuing the search endpoint with the url:
https://senv_name].sysaidit.com/api/v1/sr/search?query=*&fields=id,sub_type,problem_type&sub_type=31
This is not working and returning me SR’s with sub_types that are not of the ID 31.
Alternatively, I could send a request that filters on problem_type and the results are properly filtered.
https://henv_name].sysaidit.com/api/v1/sr/search?query=*&fields=id,sub_type,problem_type&problem_type=Security
Why is sub_type specifically not being respected in the search?
Thanks