<?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 Response: set failed, may need to override template object first in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/response-set-failed-may-need-to-override-template-object-first/m-p/325864#M2296</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I am trying to hit below API, I am getting error response, pasted below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Payload:&lt;/P&gt;&lt;P&gt;{"type":"config","action":"set","key":"&amp;lt;Key&amp;gt;","xpath":"/config/devices/entry/vsys/entry/address-group/entry/[@name='apadr']","element":"&amp;lt;static&amp;gt;&amp;lt;member&amp;gt;dstobj02&amp;lt;/member&amp;gt;\n&amp;lt;member&amp;gt;dstobj01&amp;lt;/member&amp;gt;\n&amp;lt;/static&amp;gt;"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Response:&lt;/P&gt;&lt;P&gt;'&amp;lt;response status="error" code="13"&amp;gt;&amp;lt;msg&amp;gt;&amp;lt;line&amp;gt;set failed, may need to override template object first&amp;lt;/line&amp;gt;&amp;lt;/msg&amp;gt;&amp;lt;/response&amp;gt;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2020 04:57:34 GMT</pubDate>
    <dc:creator>bcrogerz</dc:creator>
    <dc:date>2020-05-05T04:57:34Z</dc:date>
    <item>
      <title>Response: set failed, may need to override template object first</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/response-set-failed-may-need-to-override-template-object-first/m-p/325864#M2296</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I am trying to hit below API, I am getting error response, pasted below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Payload:&lt;/P&gt;&lt;P&gt;{"type":"config","action":"set","key":"&amp;lt;Key&amp;gt;","xpath":"/config/devices/entry/vsys/entry/address-group/entry/[@name='apadr']","element":"&amp;lt;static&amp;gt;&amp;lt;member&amp;gt;dstobj02&amp;lt;/member&amp;gt;\n&amp;lt;member&amp;gt;dstobj01&amp;lt;/member&amp;gt;\n&amp;lt;/static&amp;gt;"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Response:&lt;/P&gt;&lt;P&gt;'&amp;lt;response status="error" code="13"&amp;gt;&amp;lt;msg&amp;gt;&amp;lt;line&amp;gt;set failed, may need to override template object first&amp;lt;/line&amp;gt;&amp;lt;/msg&amp;gt;&amp;lt;/response&amp;gt;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 04:57:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/response-set-failed-may-need-to-override-template-object-first/m-p/325864#M2296</guid>
      <dc:creator>bcrogerz</dc:creator>
      <dc:date>2020-05-05T04:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Response: set failed, may need to override template object first</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/response-set-failed-may-need-to-override-template-object-first/m-p/326037#M2298</link>
      <description>&lt;P&gt;First and foremost, you seem to have posted your API key on the internet, which is basically posting your password.&amp;nbsp; Please change the password associated with that account as it is no longer secure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the error, you are not specifying a specific vsys in the xpath, so that might be the error..?&amp;nbsp; It could also be that if the address group "apadr" is currently a dynamic address group, since you're using a set I know PAN-OS will error out, just don't remember off the top of my head if it's this specific error or something else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, it is highly recommended that you use one of the API libraries Palo Alto Networks has made available for free to make it easier to work with the API, such as pan-python (python), pandevice (python), or pango (golang).&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 23:03:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/response-set-failed-may-need-to-override-template-object-first/m-p/326037#M2298</guid>
      <dc:creator>gfreeman</dc:creator>
      <dc:date>2020-05-04T23:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Response: set failed, may need to override template object first</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/response-set-failed-may-need-to-override-template-object-first/m-p/326580#M2313</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the same X-Path for the get objects and response is successful.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 04:42:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/response-set-failed-may-need-to-override-template-object-first/m-p/326580#M2313</guid>
      <dc:creator>bcrogerz</dc:creator>
      <dc:date>2020-05-07T04:42:06Z</dc:date>
    </item>
  </channel>
</rss>

