Forum Discussion

Jules88's avatar
Jules88
New Member
2 years ago
Solved

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...
  • Jules88's avatar
    2 years ago

    Actually managed to get this sorted myself, thanks anyway

  • Jules88's avatar
    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""}]}"