<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Web API calls returning generic err / empty payload (Response 400) in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-calls-returning-generic-err-empty-payload-Response-400/m-p/236266#M8898</link>
    <description>&lt;P&gt;Your request body should have a NULL JSON string: { }&lt;/P&gt;</description>
    <pubDate>Wed, 18 Dec 2024 21:51:44 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2024-12-18T21:51:44Z</dc:date>
    <item>
      <title>Web API calls returning generic err / empty payload (Response 400)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-calls-returning-generic-err-empty-payload-Response-400/m-p/236261#M8897</link>
      <description>&lt;P&gt;Curious what the problem is, I tried doing this with some other endpoints but decided to use this to continue testing. Sample of python code in use:&lt;/P&gt;&lt;P&gt;url = "&lt;A href="https://10.xxx.xxx.xx:443/web_api/show-users" target="_blank"&gt;https://10.xxx.xxx.xx:443/web_api/show-users&lt;/A&gt;"&lt;BR /&gt;headers = {"X-chkp-sid": sid, "Content-Type": "application/json"}&lt;BR /&gt;response = requests.post(url, headers = headers, verify = False)&lt;BR /&gt;print(response.content)&lt;/P&gt;&lt;P&gt;But it returns:&amp;nbsp;&amp;lt;Response [400]&amp;gt; b'{\n "code" : "generic_err_invalid_syntax",\n "message" : "Payload is empty"\n}'&lt;/P&gt;&lt;P&gt;Am I doing something wrong / missing something with this request? I am verifying that I'm getting and passing the appropriate sid when making the attempt.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 20:28:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-calls-returning-generic-err-empty-payload-Response-400/m-p/236261#M8897</guid>
      <dc:creator>mobrien</dc:creator>
      <dc:date>2024-12-18T20:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Web API calls returning generic err / empty payload (Response 400)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-calls-returning-generic-err-empty-payload-Response-400/m-p/236266#M8898</link>
      <description>&lt;P&gt;Your request body should have a NULL JSON string: { }&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 21:51:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-calls-returning-generic-err-empty-payload-Response-400/m-p/236266#M8898</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-12-18T21:51:44Z</dc:date>
    </item>
  </channel>
</rss>

