Forum Discussion
Jules88
2 years agoNew Member
API call with JSON formatted body
Hello, I am looking for a little help with regards to an API call I am trying to make and I cannot quite get it to work. let
AccessToken="Bearer "&GetAuthToken(),
url="https://g...
- 2 years ago
Actually managed to get this sorted myself, thanks anyway
- 2 years ago
The code itself appeared to be correct, maybe it was the formatting that needs to be all on one line, but the operator is case sensitive, has to be in capitals, certainly for the API call I was using anyway.
body="{ ""filters"": [{""field"":""software.name"", ""operator"":""EQUALS"", ""value"":""Chrome""}]}"
Jules88
2 years agoNew Member
The code itself appeared to be correct, maybe it was the formatting that needs to be all on one line, but the operator is case sensitive, has to be in capitals, certainly for the API call I was using anyway.
body="{ ""filters"": [{""field"":""software.name"", ""operator"":""EQUALS"", ""value"":""Chrome""}]}"