<?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 Upload JSON package using REST API in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Upload-JSON-package-using-REST-API/m-p/728411#M21848</link>
    <description>&lt;P&gt;I would like to repeat sas-admin CLI command&amp;nbsp;&amp;nbsp;&lt;CODE class=" language-sas"&gt;./sas-admin transfer upload &lt;/CODE&gt;using REST API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;./sas-admin transfer upload --file &amp;lt;/path/transfer_code_20210322.json&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I use &lt;EM&gt;--verbose&lt;/EM&gt; I don't see enough information repeat all the activities using PROC HTTP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CLI --verbose response with uploading the file. I would like to prepare REST API query to repeat the same steps.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;POST /transfer/packages HTTP/1.1
Host: XXXXXX
User-Agent: Go-http-client/1.1
Transfer-Encoding: chunked
Accept: application/vnd.sas.summary+json
Accept-Language: en-US,en
Accept-Locale: en-US,en
Authorization: &amp;lt;AUTHORIZATION&amp;gt;
Content-Type: multipart/form-data; boundary=2ff81854ebb20ed697f11dabfac707cc5247c40e08e1452802cd046e5c04
Accept-Encoding: gzip

8000
--2ff81854ebb20ed697f11dabfac707cc5247c40e08e1452802cd046e5c04
Content-Disposition: form-data; name="file"; filename="transfer_code_20210322.json"
Content-Type: application/octet-stream

{"id":"82294fdd-d98f-4598-a923-2dd82d396ca9","version":1,"name":"transfer_code_20210322","description":"","creationTimeStamp":"2021-03-22T13:20:28.992Z","cBy":"dki","modifiedTimeStamp":"2021-03-22T13:20:30.336Z","mo...........&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example I see this POST Query. But I don't see the dependency between the CLI file path: &lt;CODE class=" language-sas"&gt;&amp;lt;/path/transfer_code_20210322.json&amp;gt;&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt; &lt;/CODE&gt;and options( &lt;CODE class=" language-sas"&gt;application/octet-stream, boundary= &lt;/CODE&gt;) we can see in the&amp;nbsp;&lt;CODE class=" language-sas"&gt;--verbose&lt;/CODE&gt;&amp;nbsp; such as:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;--2ff81854ebb20ed697f11dabfac707cc5247c40e08e1452802cd046e5c04
Content-Disposition: form-data; name="file"; filename="transfer_code_20210322.json"
Content-Type: application/octet-stream&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The boundary described here &lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4426-2020.pdf" target="_self"&gt;LINK&lt;/A&gt; but I still can't understand how to use it in that case.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To summarize:&lt;/P&gt;
&lt;P&gt;My goal to have a REST API code that allow me to upload package to Viya server. In the further steps I'm going to use the package for promotes between the environments.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Ivan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Mar 2021 11:55:04 GMT</pubDate>
    <dc:creator>idziemianczyk</dc:creator>
    <dc:date>2021-03-23T11:55:04Z</dc:date>
    <item>
      <title>Upload JSON package using REST API</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Upload-JSON-package-using-REST-API/m-p/728411#M21848</link>
      <description>&lt;P&gt;I would like to repeat sas-admin CLI command&amp;nbsp;&amp;nbsp;&lt;CODE class=" language-sas"&gt;./sas-admin transfer upload &lt;/CODE&gt;using REST API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;./sas-admin transfer upload --file &amp;lt;/path/transfer_code_20210322.json&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I use &lt;EM&gt;--verbose&lt;/EM&gt; I don't see enough information repeat all the activities using PROC HTTP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CLI --verbose response with uploading the file. I would like to prepare REST API query to repeat the same steps.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;POST /transfer/packages HTTP/1.1
Host: XXXXXX
User-Agent: Go-http-client/1.1
Transfer-Encoding: chunked
Accept: application/vnd.sas.summary+json
Accept-Language: en-US,en
Accept-Locale: en-US,en
Authorization: &amp;lt;AUTHORIZATION&amp;gt;
Content-Type: multipart/form-data; boundary=2ff81854ebb20ed697f11dabfac707cc5247c40e08e1452802cd046e5c04
Accept-Encoding: gzip

8000
--2ff81854ebb20ed697f11dabfac707cc5247c40e08e1452802cd046e5c04
Content-Disposition: form-data; name="file"; filename="transfer_code_20210322.json"
Content-Type: application/octet-stream

{"id":"82294fdd-d98f-4598-a923-2dd82d396ca9","version":1,"name":"transfer_code_20210322","description":"","creationTimeStamp":"2021-03-22T13:20:28.992Z","cBy":"dki","modifiedTimeStamp":"2021-03-22T13:20:30.336Z","mo...........&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example I see this POST Query. But I don't see the dependency between the CLI file path: &lt;CODE class=" language-sas"&gt;&amp;lt;/path/transfer_code_20210322.json&amp;gt;&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt; &lt;/CODE&gt;and options( &lt;CODE class=" language-sas"&gt;application/octet-stream, boundary= &lt;/CODE&gt;) we can see in the&amp;nbsp;&lt;CODE class=" language-sas"&gt;--verbose&lt;/CODE&gt;&amp;nbsp; such as:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;--2ff81854ebb20ed697f11dabfac707cc5247c40e08e1452802cd046e5c04
Content-Disposition: form-data; name="file"; filename="transfer_code_20210322.json"
Content-Type: application/octet-stream&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The boundary described here &lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4426-2020.pdf" target="_self"&gt;LINK&lt;/A&gt; but I still can't understand how to use it in that case.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To summarize:&lt;/P&gt;
&lt;P&gt;My goal to have a REST API code that allow me to upload package to Viya server. In the further steps I'm going to use the package for promotes between the environments.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Ivan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 11:55:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Upload-JSON-package-using-REST-API/m-p/728411#M21848</guid>
      <dc:creator>idziemianczyk</dc:creator>
      <dc:date>2021-03-23T11:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Upload JSON package using REST API</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Upload-JSON-package-using-REST-API/m-p/728414#M21849</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/54649"&gt;@idziemianczyk&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You aren't supposed to use Transfer Service REST API directly. The only supported way of communicating with Transfer Service REST API is using transfer plugin of sas-admin client.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 12:35:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Upload-JSON-package-using-REST-API/m-p/728414#M21849</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2021-03-23T12:35:03Z</dc:date>
    </item>
  </channel>
</rss>

