<?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: FMC API PUT Failure When Inspection is Enabled in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/fmc-api-put-failure-when-inspection-is-enabled/m-p/4870654#M455</link>
    <description>&lt;P&gt;Hi, which API endpoint are you using?&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jul 2023 06:17:21 GMT</pubDate>
    <dc:creator>Marcel Zehnder</dc:creator>
    <dc:date>2023-07-10T06:17:21Z</dc:date>
    <item>
      <title>FMC API PUT Failure When Inspection is Enabled</title>
      <link>https://community.cisco.com/t5/network-security/fmc-api-put-failure-when-inspection-is-enabled/m-p/4868849#M454</link>
      <description>&lt;P&gt;Good day wonderful people,&lt;/P&gt;&lt;P&gt;Expected Outcome: Partially edit existing rules via automation to enable syslog,logend,sendeventstofmc via PUT request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue: The partial modification works successfully, unless Inspection is enabled on the rule, then an error is thrown and a 500 status is raised. If Inspection is not enabled, the request completes and updates as required, and i am able to iterate through all rules via a list in a python script. The only way to work around the Inspection portion is to include the inspection object in the body. Unfortunately, i would need to identify every rule (1000+ rules where Inspection is enabled), and identify their individual settings to include in the body so as not to overwrite or modify those. How do i avoid this issue, if anyone has come across it and found a simple solution?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request Body:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "sendEventsToFMC": true,
  "id": "0050568F-427B-0ed3-0000-000268434454",
  "enabled": true,
  "enableSyslog": true,
  "logBegin": false,
  "logEnd": true,
  "newComments": [
    "updated via postman api"
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Response Output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "error": {
        "category": "OTHER",
        "messages": [
            {}
        ],
        "severity": "ERROR"
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 12:34:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/fmc-api-put-failure-when-inspection-is-enabled/m-p/4868849#M454</guid>
      <dc:creator>DinoC_ZAR</dc:creator>
      <dc:date>2023-07-06T12:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: FMC API PUT Failure When Inspection is Enabled</title>
      <link>https://community.cisco.com/t5/network-security/fmc-api-put-failure-when-inspection-is-enabled/m-p/4870654#M455</link>
      <description>&lt;P&gt;Hi, which API endpoint are you using?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 06:17:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/fmc-api-put-failure-when-inspection-is-enabled/m-p/4870654#M455</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-07-10T06:17:21Z</dc:date>
    </item>
  </channel>
</rss>

