UiPath Documentation
orchestrator
latest
false
  • Getting Started
    • About OData and References
    • Enumerated Types
    • Authenticating
    • Building API Requests
    • Permissions Per Endpoint
    • Response Codes
    • Rate limits and large data field usage optimization
  • Swagger Definition
    • Read Me
    • Authorizing API Calls in Swagger
    • Managing Logical Resources
  • Orchestrator APIs
    • Alerts Requests
    • Assets Requests
    • Calendars Requests
    • Environments Requests
    • Folders Requests
    • Generic Tasks Requests
    • Jobs Requests
    • Libraries Requests
    • License Requests
    • Packages Requests
    • Permissions Requests
    • Personal Workspaces Requests
    • Processes Requests
    • Process Data Retention Policy Requests
    • Queue Items Requests
    • Queue Retention Policy Requests
    • Robots Requests
    • Roles Requests
    • Schedules Requests
    • Settings Requests
    • Storage Bucket Requests
    • Tasks Requests
    • Task Catalogs Requests
    • Task Forms Requests
    • Tenants Requests
    • Transactions Requests
    • Users Requests
    • Webhooks Requests
UiPath logo, featuring letters U and I in white

Orchestrator API Guide

Last updated Nov 20, 2024

Alerts Requests

Mark Alerts as Read

This request enables you to mark one or more alerts as read in the tenant the user has access to.

POST

https://govcloud.uipath.us/{organizationName}/{tenantName}/orchestrator_/odata/Alerts/UiPath.Server.Configuration.OData.MarkAsRead

Request headers

Key

Value

Authorization

Bearer

Request body

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

Response code

200 OK

Response body

{
    "value": 12
}{
    "value": 12
}
Important: The request body must contain the UserNotificationId as the value for the "ids" field of the payload. To find out the UserNotificationId, make a GET request to the /odata/Alerts endpoint first.
For example, calling the GET /odata/Alerts returns the following response body:
{
  "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"
    }
  ]
}
Map the "UserNotificationId" value (i.e., 197ed863-037b-4d89-8271-c04e30b52240) to the "ids" key in the request body of the POST /odata/Alerts/UiPath.Server.Configuration.OData.MarkAsRead endpoint.
  • Mark Alerts as Read
  • Request headers
  • Request body
  • Response code
  • Response body

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated