<?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: Endpoint &amp;quot;/svi-alert/alertActions/&amp;amp;actionType&amp;quot; only works when I reset SAS Studio in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Endpoint-quot-svi-alert-alertActions-amp-actionType-quot-only/m-p/978725#M6656</link>
    <description>&lt;P&gt;FYI&lt;BR /&gt;I found out what was wrong.&lt;BR /&gt;&lt;BR /&gt;The payload was in the wrong format... I was trying with this payload:&lt;/P&gt;&lt;PRE&gt;{ "items": [
  {
    "alertIds": ["alert1"],
    "actionType": "REACTIVATE",
    "user": "user"
  },
  {
    "alertIds": ["alert2"],
    "actionType": "REACTIVATE",
    "user": "user"
  },
  {
    "alertIds": ["alert3"],
    "actionType": "REACTIVATE",
    "user": "user"
  }
]}&lt;/PRE&gt;&lt;P&gt;But it should be like this:&lt;/P&gt;&lt;PRE&gt;{ "items": [
  {
    "alertIds": ["alert1", "alert2", "alert3"],
    "actionType": "REACTIVATE",
    "user": "user"
  }
]}&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Hope this helps&amp;nbsp;someone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;David&lt;/P&gt;</description>
    <pubDate>Wed, 12 Nov 2025 13:25:57 GMT</pubDate>
    <dc:creator>__david__</dc:creator>
    <dc:date>2025-11-12T13:25:57Z</dc:date>
    <item>
      <title>Endpoint "/svi-alert/alertActions/&amp;actionType" only works when I reset SAS Studio session</title>
      <link>https://communities.sas.com/t5/Developers/Endpoint-quot-svi-alert-alertActions-amp-actionType-quot-only/m-p/978669#M6655</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I am trying to use REST call to reactivate a closed alert so I found this one:&amp;nbsp;&lt;A href="https://developer.sas.com/rest-apis/svi-alert/createPerformActions" target="_blank" rel="noopener"&gt;https://developer.sas.com/rest-apis/svi-alert/createPerformActions&lt;/A&gt;&lt;BR /&gt;and the code I wrote works and reactivates the alert properly.&lt;BR /&gt;Then I made a loop that will loop through a list of alerts and reactivate every one of them, but that only works for the first one, all other alerts give this response:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;{"errorCode":403,"message":"Forbidden","details":["path: /svi-alert/alertActions/REACTIVATE"],"links":[],"version":2,"httpStatusCode":403}&lt;/PRE&gt;This also happens if I try to reactivate only one alert. The first one reactivates, and every other returns 403 Forbidden.&lt;BR /&gt;But when I click the "Reset SAS Session" button in SAS Studio, and try again, it works again.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So I thought that it is due to the bearer token of the session and that I need a new token for every alert I wanted to reactivate and I put that inside of a loop, but it still returned forbidden for all other alerts.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any idea on why it works only the first time the session is opened? This is the first time I had problem like this, other endpoints are working very well even in loops when doing something to multiple alerts.&lt;BR /&gt;What else is changed when I reset the session, do I need to reset some other token other than bearer in order to reactivate multiple alerts at once?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;David&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Nov 2025 11:40:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Endpoint-quot-svi-alert-alertActions-amp-actionType-quot-only/m-p/978669#M6655</guid>
      <dc:creator>__david__</dc:creator>
      <dc:date>2025-11-11T11:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Endpoint "/svi-alert/alertActions/&amp;actionType" only works when I reset SAS Studio</title>
      <link>https://communities.sas.com/t5/Developers/Endpoint-quot-svi-alert-alertActions-amp-actionType-quot-only/m-p/978725#M6656</link>
      <description>&lt;P&gt;FYI&lt;BR /&gt;I found out what was wrong.&lt;BR /&gt;&lt;BR /&gt;The payload was in the wrong format... I was trying with this payload:&lt;/P&gt;&lt;PRE&gt;{ "items": [
  {
    "alertIds": ["alert1"],
    "actionType": "REACTIVATE",
    "user": "user"
  },
  {
    "alertIds": ["alert2"],
    "actionType": "REACTIVATE",
    "user": "user"
  },
  {
    "alertIds": ["alert3"],
    "actionType": "REACTIVATE",
    "user": "user"
  }
]}&lt;/PRE&gt;&lt;P&gt;But it should be like this:&lt;/P&gt;&lt;PRE&gt;{ "items": [
  {
    "alertIds": ["alert1", "alert2", "alert3"],
    "actionType": "REACTIVATE",
    "user": "user"
  }
]}&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Hope this helps&amp;nbsp;someone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;David&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 13:25:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Endpoint-quot-svi-alert-alertActions-amp-actionType-quot-only/m-p/978725#M6656</guid>
      <dc:creator>__david__</dc:creator>
      <dc:date>2025-11-12T13:25:57Z</dc:date>
    </item>
  </channel>
</rss>

