<?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 SAS Data Remediation REST API in Developers</title>
    <link>https://communities.sas.com/t5/Developers/SAS-Data-Remediation-REST-API/m-p/889635#M6402</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;I am trying to POST issues to Data Remediation using the REST API, but keep getting&amp;nbsp;500 Internal Server Error. I am just trying with one issue at the moment just to get the logging sorted out, and then I will start looking at logging multiple issues. Here is my SAS Enterprise Guide code and I have attached the input file. Please could you assist if possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;filename in "/sas/batch/sasdata/dataremediation/tables/json_manual.txt";&lt;/DIV&gt;
&lt;DIV&gt;filename out "/sas/batch/sasdata/dataremediation/tables/json_out.txt";&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;proc http in=in out=out url="&lt;A href="https://uatsasmid103.ho.fosltd.co.za:8343/SASDataRemediation/rest/groups" target="_blank" rel="noopener"&gt;https://server:port/SASDataRemediation/rest/groups&lt;/A&gt;"&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; method="POST"&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; ct="application/json; charset=utf-8"&lt;/DIV&gt;
&lt;DIV&gt;/* webauthdomain="LinuxAuth"*/&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; webusername="heididt"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; webpassword="{SAS002}66B564224EE630732E6388E0395887EC37DCE27D300D953A"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; run;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 17 Aug 2023 11:50:59 GMT</pubDate>
    <dc:creator>HeidiDT</dc:creator>
    <dc:date>2023-08-17T11:50:59Z</dc:date>
    <item>
      <title>SAS Data Remediation REST API</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Data-Remediation-REST-API/m-p/889635#M6402</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;I am trying to POST issues to Data Remediation using the REST API, but keep getting&amp;nbsp;500 Internal Server Error. I am just trying with one issue at the moment just to get the logging sorted out, and then I will start looking at logging multiple issues. Here is my SAS Enterprise Guide code and I have attached the input file. Please could you assist if possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;filename in "/sas/batch/sasdata/dataremediation/tables/json_manual.txt";&lt;/DIV&gt;
&lt;DIV&gt;filename out "/sas/batch/sasdata/dataremediation/tables/json_out.txt";&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;proc http in=in out=out url="&lt;A href="https://uatsasmid103.ho.fosltd.co.za:8343/SASDataRemediation/rest/groups" target="_blank" rel="noopener"&gt;https://server:port/SASDataRemediation/rest/groups&lt;/A&gt;"&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; method="POST"&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; ct="application/json; charset=utf-8"&lt;/DIV&gt;
&lt;DIV&gt;/* webauthdomain="LinuxAuth"*/&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; webusername="heididt"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; webpassword="{SAS002}66B564224EE630732E6388E0395887EC37DCE27D300D953A"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; run;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Aug 2023 11:50:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Data-Remediation-REST-API/m-p/889635#M6402</guid>
      <dc:creator>HeidiDT</dc:creator>
      <dc:date>2023-08-17T11:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data Remediation REST API</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Data-Remediation-REST-API/m-p/889701#M6403</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/54209"&gt;@HeidiDT&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I've not worked with the Data Remediation APIs before, so it may take me a bit of time to gather resources to assist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately a 500 error doesn't give us much to go on. Can you try a 'GET' method on the same groups endpoint? Establishing a connection is the first step before we can troubleshoot further.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 17:01:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Data-Remediation-REST-API/m-p/889701#M6403</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2023-08-17T17:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data Remediation REST API</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Data-Remediation-REST-API/m-p/889706#M6404</link>
      <description>&lt;P&gt;Joe sounds like he has this covered. I wanted to add that you should always get the API working with Postman SoapUI, or other web testing tool before tackling the SAS code. Have you done that already?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 17:33:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Data-Remediation-REST-API/m-p/889706#M6404</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2023-08-17T17:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data Remediation REST API</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Data-Remediation-REST-API/m-p/889826#M6405</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13798"&gt;@AlanC&lt;/a&gt;. I have tried with Postman and am getting the same error unfortunately.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 10:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Data-Remediation-REST-API/m-p/889826#M6405</guid>
      <dc:creator>HeidiDT</dc:creator>
      <dc:date>2023-08-18T10:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data Remediation REST API</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Data-Remediation-REST-API/m-p/889887#M6406</link>
      <description>Dig down into the error as much as possible. When I get into this area, I turn on Fiddler and check the traffic flow. Postman probably gives you something similar but you can use Fiddler with Postman as well.  You have to look at the raw request and response going and coming.</description>
      <pubDate>Fri, 18 Aug 2023 14:07:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Data-Remediation-REST-API/m-p/889887#M6406</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2023-08-18T14:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data Remediation REST API</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Data-Remediation-REST-API/m-p/890341#M6409</link>
      <description>&lt;P&gt;Hi All!&lt;/P&gt;
&lt;P&gt;So I have managed to get past the 500 error and am now getting a 401 (unauthorized) error. I have been trying to find documentation on the wed regarding authentication when using the SAS provided APIs, but am not having much luck. Can anyone help with authentication for SAS RESTful APIs in general, please?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 09:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Data-Remediation-REST-API/m-p/890341#M6409</guid>
      <dc:creator>HeidiDT</dc:creator>
      <dc:date>2023-08-22T09:24:46Z</dc:date>
    </item>
  </channel>
</rss>

