<?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: Is there a REST endpoint that allows replacing a static resource? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-endpoint-that-allows-replacing-a-static-resource/m-p/283127#M54137</link>
    <description>&lt;P&gt;If you go down the route @jkat54 is talking about with your trusty rusty chrome HTTP request debugger, it looks like it just does a POST of form data directly to the 'app' itself, in my case &lt;CODE&gt;&lt;A href="http://localhost:8000/en-US/manager/launcher/apps/local/search" target="test_blank"&gt;http://localhost:8000/en-US/manager/launcher/apps/local/search&lt;/A&gt;&lt;/CODE&gt; -- which is really not a REST endpoint, but likely a splunkweb controller of some kind.&lt;/P&gt;

&lt;P&gt;You can't just smash it easily with curl because it doesn't seem to understand HTTP basic auth.  I estimate you'd need to hit the auth form and submit to get back a cookie and then hit the form up.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2016 02:33:56 GMT</pubDate>
    <dc:creator>dwaddle</dc:creator>
    <dc:date>2016-09-13T02:33:56Z</dc:date>
    <item>
      <title>Is there a REST endpoint that allows replacing a static resource?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-endpoint-that-allows-replacing-a-static-resource/m-p/283125#M54135</link>
      <description>&lt;P&gt;Is there an endpoint that allows replacing a static resource? I've written some scripts to upload dashboards through:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SERVER:8089/servicesNS/%s/%s/data/ui/views/%s
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I don't see an equivalent for the files that land in appserver/static, javascript, and css in particular.&lt;/P&gt;

&lt;P&gt;Am I missing something?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 00:35:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-endpoint-that-allows-replacing-a-static-resource/m-p/283125#M54135</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2016-09-13T00:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a REST endpoint that allows replacing a static resource?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-endpoint-that-allows-replacing-a-static-resource/m-p/283126#M54136</link>
      <description>&lt;P&gt;There got to be one somewhere because that's exactly where assets go when you upload them through the app manager... &lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 01:19:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-endpoint-that-allows-replacing-a-static-resource/m-p/283126#M54136</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-09-13T01:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a REST endpoint that allows replacing a static resource?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-endpoint-that-allows-replacing-a-static-resource/m-p/283127#M54137</link>
      <description>&lt;P&gt;If you go down the route @jkat54 is talking about with your trusty rusty chrome HTTP request debugger, it looks like it just does a POST of form data directly to the 'app' itself, in my case &lt;CODE&gt;&lt;A href="http://localhost:8000/en-US/manager/launcher/apps/local/search" target="test_blank"&gt;http://localhost:8000/en-US/manager/launcher/apps/local/search&lt;/A&gt;&lt;/CODE&gt; -- which is really not a REST endpoint, but likely a splunkweb controller of some kind.&lt;/P&gt;

&lt;P&gt;You can't just smash it easily with curl because it doesn't seem to understand HTTP basic auth.  I estimate you'd need to hit the auth form and submit to get back a cookie and then hit the form up.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 02:33:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-endpoint-that-allows-replacing-a-static-resource/m-p/283127#M54137</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2016-09-13T02:33:56Z</dc:date>
    </item>
  </channel>
</rss>

