<?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: CER config API issues in Management</title>
    <link>https://community.cisco.com/t5/management/cer-config-api-issues/m-p/5040161#M4199</link>
    <description>&lt;P&gt;After beating my head against a wall for too long, I gave up on JSON. I was able to make it work with XML. SIgh....&lt;/P&gt;
&lt;P&gt;Edit: I think the documentation lies. Maybe V15 supports JSON, but it sure doesn't seem like V14 does.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2024 21:05:23 GMT</pubDate>
    <dc:creator>Elliot Dierksen</dc:creator>
    <dc:date>2024-03-14T21:05:23Z</dc:date>
    <item>
      <title>CER config API issues</title>
      <link>https://community.cisco.com/t5/management/cer-config-api-issues/m-p/5039961#M4196</link>
      <description>&lt;P&gt;I am not able to make changes via API to CER v14. I am always getting back a 400 - bad request. I got past the read portion of CER after I figured out that you have to parse out the 'Set-Cookie' header and send it back in a subsequent request as a 'Cookie' header. All my GET requests are working great. I am trying to send JSON for the request based on the documentation examples at &lt;A href="https://developer.cisco.com/docs/cer-config/" target="_self"&gt;https://developer.cisco.com/docs/cer-config/&lt;/A&gt; but no joy so far. Does it actually accept JSON, or do I need to convert this to XML? I noticed the XML version for updating a user group was inside a tag of &lt;/P&gt;
&lt;LI-CODE lang="xml"&gt;updateUserGroupRequest&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;but the JSON example looks like you just send the elements like this.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;cer_base_url5 = '/cerappservices/service/usergroup/'
                update_group = {
                    "userGroupName": admg_name,
                    "addUsersToGroup": {
                        "user": [ adm_user ]
                    }
                    qupd = requests.put(cer_full_url5,auth=req_dauth,verify=False,headers=json_hdr,data=update_group)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;It seems like I must missing a small detail, but I haven't been able to figure it out.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 17:17:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cer-config-api-issues/m-p/5039961#M4196</guid>
      <dc:creator>Elliot Dierksen</dc:creator>
      <dc:date>2024-03-14T17:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: CER config API issues</title>
      <link>https://community.cisco.com/t5/management/cer-config-api-issues/m-p/5039986#M4197</link>
      <description>&lt;P&gt;Not sure this is required, in your request include a content-type&amp;nbsp;header set with application/json, so this his explicitly tells the server you are&amp;nbsp; sending json data, try....&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;json_hdr = {'Content-Type': 'application/json'}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;If this does not work, print the&amp;nbsp;&lt;SPAN&gt;content from&lt;/SPAN&gt; requests.put call as it might provide more specific error details for you here.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 17:38:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cer-config-api-issues/m-p/5039986#M4197</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2024-03-14T17:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: CER config API issues</title>
      <link>https://community.cisco.com/t5/management/cer-config-api-issues/m-p/5040010#M4198</link>
      <description>&lt;P&gt;I am not getting any content back from the failed 400 put.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;update_group {'userGroupName': 'CER System Administrator', 'addUsersToGroup': {'user': ['A1-sharonhe']}}
update usergroup A1-sharonhe status code 400
URL https://fon-rc-cer01.orhs.org/cerappservices/service/usergroup/
use_hdr {'Cookie': 'JSESSIONID=D2D7D271F1A85F0DDF4DFD0F28272DEF', 'Content-Type': 'application/json'}
response content b''
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 14 Mar 2024 17:59:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cer-config-api-issues/m-p/5040010#M4198</guid>
      <dc:creator>Elliot Dierksen</dc:creator>
      <dc:date>2024-03-14T17:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: CER config API issues</title>
      <link>https://community.cisco.com/t5/management/cer-config-api-issues/m-p/5040161#M4199</link>
      <description>&lt;P&gt;After beating my head against a wall for too long, I gave up on JSON. I was able to make it work with XML. SIgh....&lt;/P&gt;
&lt;P&gt;Edit: I think the documentation lies. Maybe V15 supports JSON, but it sure doesn't seem like V14 does.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 21:05:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cer-config-api-issues/m-p/5040161#M4199</guid>
      <dc:creator>Elliot Dierksen</dc:creator>
      <dc:date>2024-03-14T21:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: CER config API issues</title>
      <link>https://community.cisco.com/t5/management/cer-config-api-issues/m-p/5040680#M4200</link>
      <description>&lt;P&gt;That would seem odd that v14 does and now v15 does not? Sadly i do not know how to get that question answered for sure, but looks like you have proved it never the less! Congrats? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 10:34:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cer-config-api-issues/m-p/5040680#M4200</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2024-03-15T10:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: CER config API issues</title>
      <link>https://community.cisco.com/t5/management/cer-config-api-issues/m-p/5040772#M4201</link>
      <description>&lt;P&gt;Perhaps there is some other mystical incantation required for JSON, but I have not been able to decipher it. If that is the case, that says not so good things about the documentation....&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 12:31:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cer-config-api-issues/m-p/5040772#M4201</guid>
      <dc:creator>Elliot Dierksen</dc:creator>
      <dc:date>2024-03-15T12:31:11Z</dc:date>
    </item>
  </channel>
</rss>

