<?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: How to create a shared alert via REST API in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-create-a-shared-alert-via-REST-API/m-p/502127#M8950</link>
    <description>&lt;P&gt;You do this via a different endpoint than the alarm creation. My script:&lt;/P&gt;

&lt;P&gt;```&lt;BR /&gt;
curl -v -k -u "$SPLUNK_USER:$SPLUNK_PASSWORD" \&lt;BR /&gt;
     "https://$DOMAIN:8089/services/saved/searches/$ALARM_NAME/acl" \&lt;BR /&gt;
     --data-urlencode sharing="app" \&lt;BR /&gt;
     --data-urlencode output_mode="json" \&lt;BR /&gt;
     --data-urlencode owner="$SPLUNK_USER" \&lt;BR /&gt;
     --data-urlencode perms.read="&lt;EM&gt;" \&lt;BR /&gt;
     --data-urlencode perms.write="&lt;/EM&gt;"&lt;/P&gt;

&lt;P&gt;```&lt;/P&gt;

&lt;P&gt;This grants read and write permissions to everyone in the 'app' sharing thing.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:51:03 GMT</pubDate>
    <dc:creator>justinabrahms</dc:creator>
    <dc:date>2020-09-30T02:51:03Z</dc:date>
    <item>
      <title>How to create a shared alert via REST API</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-shared-alert-via-REST-API/m-p/502125#M8948</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;

&lt;P&gt;I had a great doubt about creating alerts using Splunk Rest API.&lt;/P&gt;

&lt;P&gt;Every of them are shared only for the owner/creator after been created.&lt;/P&gt;

&lt;P&gt;How can I create a shared alert with my group of users using the Rest API?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 18:46:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-shared-alert-via-REST-API/m-p/502125#M8948</guid>
      <dc:creator>mlopesn</dc:creator>
      <dc:date>2019-10-15T18:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a shared alert via REST API</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-shared-alert-via-REST-API/m-p/502126#M8949</link>
      <description>&lt;P&gt;You do this via a different endpoint than the alarm creation. My script:&lt;/P&gt;

&lt;P&gt;```&lt;BR /&gt;
curl -v -k -u "$SPLUNK_USER:$SPLUNK_PASSWORD" \&lt;BR /&gt;
     "https://$DOMAIN:8089/services/saved/searches/$ALARM_NAME/acl" \&lt;BR /&gt;
     --data-urlencode sharing="app" \&lt;BR /&gt;
     --data-urlencode output_mode="json" \&lt;BR /&gt;
     --data-urlencode owner="$SPLUNK_USER" \&lt;BR /&gt;
     --data-urlencode perms.read="&lt;EM&gt;" \&lt;BR /&gt;
     --data-urlencode perms.write="&lt;/EM&gt;"&lt;/P&gt;

&lt;P&gt;```&lt;/P&gt;

&lt;P&gt;This grants read and write permissions to everyone in the 'app' sharing thing.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:51:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-shared-alert-via-REST-API/m-p/502126#M8949</guid>
      <dc:creator>justinabrahms</dc:creator>
      <dc:date>2020-09-30T02:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a shared alert via REST API</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-shared-alert-via-REST-API/m-p/502127#M8950</link>
      <description>&lt;P&gt;You do this via a different endpoint than the alarm creation. My script:&lt;/P&gt;

&lt;P&gt;```&lt;BR /&gt;
curl -v -k -u "$SPLUNK_USER:$SPLUNK_PASSWORD" \&lt;BR /&gt;
     "https://$DOMAIN:8089/services/saved/searches/$ALARM_NAME/acl" \&lt;BR /&gt;
     --data-urlencode sharing="app" \&lt;BR /&gt;
     --data-urlencode output_mode="json" \&lt;BR /&gt;
     --data-urlencode owner="$SPLUNK_USER" \&lt;BR /&gt;
     --data-urlencode perms.read="&lt;EM&gt;" \&lt;BR /&gt;
     --data-urlencode perms.write="&lt;/EM&gt;"&lt;/P&gt;

&lt;P&gt;```&lt;/P&gt;

&lt;P&gt;This grants read and write permissions to everyone in the 'app' sharing thing.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:51:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-shared-alert-via-REST-API/m-p/502127#M8950</guid>
      <dc:creator>justinabrahms</dc:creator>
      <dc:date>2020-09-30T02:51:03Z</dc:date>
    </item>
  </channel>
</rss>

