<?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: ISE policy API throwing error request has bad input format in the in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/ise-policy-api-throwing-error-request-has-bad-input-format-in/m-p/5011216#M3264</link>
    <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/577918"&gt;@ruban&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Yes, feel free to close this off, I was able to fix this in the end.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 15:48:52 GMT</pubDate>
    <dc:creator>TheNetRunner</dc:creator>
    <dc:date>2024-02-01T15:48:52Z</dc:date>
    <item>
      <title>ISE policy API throwing error request has bad input format in the body</title>
      <link>https://community.cisco.com/t5/controllers/ise-policy-api-throwing-error-request-has-bad-input-format-in/m-p/4603868#M283</link>
      <description>&lt;P&gt;Hey all,&lt;BR /&gt;&lt;BR /&gt;I am currently trying to develop a script for automating some tasks within ISE, one of those tasks involves creating a network access rule within a policy set. This is where I've hit a hurdle, when trying to create a rule I get:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;"message"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"request has bad input format in the body"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;"code"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;400&lt;/SPAN&gt;
&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Which is most unhelpful. This happens even when I pass in the example from Swagger. any ideas?&lt;BR /&gt;&lt;BR /&gt;Request body:&lt;/P&gt;&lt;PRE&gt;{
  "link": {
    "href": "https://ise-svr.example.com/api/v1/policy/network-access/policy-set/8bcd18db-3102-4fac-8765-1064f880cdbe",
    "rel": "self",
    "type": "application/json"
  },
  "profile": "[\"PermitAccess\",\"NSP_Onboard\"]",
  "rule": {
    "condition": {
      "conditionType": "ConditionAttributes",
      "isNegate": false,
      "link": {
        "href": "https://ise-svr.example.com/api/v1/policy/network-access/policy-set/8bcd18db-3102-4fac-8765-1064f880cdbe",
        "rel": "self",
        "type": "application/json"
      }
    },
    "default": false,
    "name": "MyRuleName_1",
    "rank": 1,
    "state": "enabled"
  },
  "securityGroup": "BYOD"
}&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 May 2022 16:33:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/ise-policy-api-throwing-error-request-has-bad-input-format-in/m-p/4603868#M283</guid>
      <dc:creator>TheNetRunner</dc:creator>
      <dc:date>2022-05-03T16:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: ISE policy API throwing error request has bad input format in the</title>
      <link>https://community.cisco.com/t5/controllers/ise-policy-api-throwing-error-request-has-bad-input-format-in/m-p/4614727#M284</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1075026"&gt;@TheNetRunner&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;You might want to check out these for some ideas:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cisco DevNet Code Exchange&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.cisco.com/codeexchange/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/codeexchange/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cisco DevNet Automation Exchange&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.cisco.com/network-automation/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/network-automation/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 00:59:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/ise-policy-api-throwing-error-request-has-bad-input-format-in/m-p/4614727#M284</guid>
      <dc:creator>Alexander Stevenson</dc:creator>
      <dc:date>2022-05-22T00:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: ISE policy API throwing error request has bad input format in the</title>
      <link>https://community.cisco.com/t5/controllers/ise-policy-api-throwing-error-request-has-bad-input-format-in/m-p/4615149#M285</link>
      <description>&lt;P&gt;Hello Alexstev,&lt;BR /&gt;&lt;BR /&gt;Thank you for the responses, the the pages you've linked look very interesting I shall give them a look now.&lt;BR /&gt;&lt;BR /&gt;Apologies for not updating this thread sooner I realized my mistake the day after I posted this and I now have it working. I was writing the application in TS and in the end I created a bunch of interfaces to prevent myself from making mistakes in the body of the request object.&lt;BR /&gt;&lt;BR /&gt;For those interested you can go to the swagger docs (&lt;A href="https://example.com/api/swagger-ui/index.html" target="_blank"&gt;https://example.com/api/swagger-ui/index.html&lt;/A&gt;) for the ISE server and look at the schemas below all the API resources. From the schemas it's a pretty easy process to create interfaces.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 08:37:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/ise-policy-api-throwing-error-request-has-bad-input-format-in/m-p/4615149#M285</guid>
      <dc:creator>TheNetRunner</dc:creator>
      <dc:date>2022-05-23T08:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: ISE policy API throwing error request has bad input format in the</title>
      <link>https://community.cisco.com/t5/controllers/ise-policy-api-throwing-error-request-has-bad-input-format-in/m-p/5011145#M3237</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1075026"&gt;@TheNetRunner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are we good to close this?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 15:02:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/ise-policy-api-throwing-error-request-has-bad-input-format-in/m-p/5011145#M3237</guid>
      <dc:creator>Ruben Cocheno</dc:creator>
      <dc:date>2024-02-01T15:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: ISE policy API throwing error request has bad input format in the</title>
      <link>https://community.cisco.com/t5/controllers/ise-policy-api-throwing-error-request-has-bad-input-format-in/m-p/5011216#M3264</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/577918"&gt;@ruban&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Yes, feel free to close this off, I was able to fix this in the end.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 15:48:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/ise-policy-api-throwing-error-request-has-bad-input-format-in/m-p/5011216#M3264</guid>
      <dc:creator>TheNetRunner</dc:creator>
      <dc:date>2024-02-01T15:48:52Z</dc:date>
    </item>
  </channel>
</rss>

