orchestrator
2024.10
true
Wichtig :
Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.
UiPath logo, featuring letters U and I in white

Orchestrator API guide

Automation CloudAutomation Cloud Public SectorAutomation SuiteStandalone
Letzte Aktualisierung 13. Feb. 2025

Warnungsanforderungen

Mark alerts as read

Mit dieser Anforderung können Sie eine oder mehrere Warnungen in dem Mandanten, auf den der Benutzer Zugriff hat, als gelesen markieren.

Posten

https://{yourDomain}/odata/Alerts/UiPath.Server.Configuration.OData.MarkAsRead

Anforderungsheader

Schlüssel

Wert

Autorisierung

Inhaber

Anforderungstext

{
    "ids": [
      "197ed863-037b-4d89-8271-c04e30b52240"
    ]
}{
    "ids": [
      "197ed863-037b-4d89-8271-c04e30b52240"
    ]
}

Antwortcode

200 OK

Antworttext

{
    "value": 12
}{
    "value": 12
}
Wichtig: Der Anforderungstext muss UserNotificationId als Wert für das Feld "ids" der Nutzlast enthalten. Um UserNotificationIdherauszufinden, stellen Sie zuerst eine GET-Anforderung an den /odata/Alerts -Endpunkt.
Der Aufruf von GET /odata/Alerts gibt beispielsweise den folgenden Antworttext zurück:
{
  "value": [
    {
      "NotificationName": "Robot.StatusChanged.Offline",
      "Data": "{\"RobotId\":123,\"RobotName\":\"user@uipath.com-unattended\",\"State\":2,\"IsUnresponsive\":false,\"OrganizationUnitId\":null,\"HostMachineName\":\"MachineName\",\"ReportingTime\":\"2021-08-20T16:48:43.76\",\"Message\":\"#robot Robot(user@uipath.com-unattended) disconnected. (#1222)\",\"MessageErrorCode\":1222,\"FolderId\":null,\"FolderFullyQualifiedName\":null,\"ForceDisplay\":false,\"Type\":\"UiPath.Orchestrator.Core.Alerts.Model.RobotStatusNotification\",\"Properties\":{}}",
      "Component": "Robots",
      "Severity": "Fatal",
      "CreationTime": "2021-08-20T16:48:50.02Z",
      "State": "Unread",
      "UserNotificationId": "197ed863-037b-4d89-8271-c04e30b52240",
      "Id": "a258f4c5-7465-40f8-a650-02228353fd4e"
    }
  ]
}{
  "value": [
    {
      "NotificationName": "Robot.StatusChanged.Offline",
      "Data": "{\"RobotId\":123,\"RobotName\":\"user@uipath.com-unattended\",\"State\":2,\"IsUnresponsive\":false,\"OrganizationUnitId\":null,\"HostMachineName\":\"MachineName\",\"ReportingTime\":\"2021-08-20T16:48:43.76\",\"Message\":\"#robot Robot(user@uipath.com-unattended) disconnected. (#1222)\",\"MessageErrorCode\":1222,\"FolderId\":null,\"FolderFullyQualifiedName\":null,\"ForceDisplay\":false,\"Type\":\"UiPath.Orchestrator.Core.Alerts.Model.RobotStatusNotification\",\"Properties\":{}}",
      "Component": "Robots",
      "Severity": "Fatal",
      "CreationTime": "2021-08-20T16:48:50.02Z",
      "State": "Unread",
      "UserNotificationId": "197ed863-037b-4d89-8271-c04e30b52240",
      "Id": "a258f4c5-7465-40f8-a650-02228353fd4e"
    }
  ]
}
Ordnen Sie den Wert "UserNotificationId" (d. h. 197ed863-037b-4d89-8271-c04e30b52240) dem Schlüssel "ids" im Anforderungstext des POST- /odata/Alerts/UiPath.Server.Configuration.OData.MarkAsRead -Endpunkts zu.
  • Mark alerts as read
  • Anforderungsheader
  • Anforderungstext
  • Antwortcode
  • Antworttext

War diese Seite hilfreich?

Hilfe erhalten
RPA lernen – Automatisierungskurse
UiPath Community-Forum
Uipath Logo White
Vertrauen und Sicherheit
© 2005–2025 UiPath. Alle Rechte vorbehalten