API DocsRESTNotification service

BatchUpdateNotifications

Batch updates a list of notifications using the list of fields specified in their respective `update_mask`s.

POST
/api/v1/notifications:batchUpdate

Request Body

application/jsonRequired

The request for a call to NotificationService_BatchUpdateNotifications to update notifications. A maximum of 1000 notifications can be modified in a batch.

requests
Required
array<object>

curl -X POST "<API_URL>/api/v1/notifications:batchUpdate" \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "requests": [
      {
        "notification": {
          "notificationId": "string",
          "createdDate": "2019-08-24T14:15:22Z",
          "modifiedDate": "2019-08-24T14:15:22Z",
          "createdByUserId": "string",
          "modifiedByUserId": "string",
          "organizationId": "string",
          "recipientUserId": "string",
          "isRead": true,
          "fullLink": "string",
          "notificationType": "NOTIFICATION_KIND_UNSPECIFIED",
          "contents": "string",
          "entityId": "string"
        },
        "updateMask": "string"
      }
    ]
  }'

A successful response.

{
  "notifications": [
    {
      "notificationId": "string",
      "createdDate": "2019-08-24T14:15:22Z",
      "modifiedDate": "2019-08-24T14:15:22Z",
      "createdByUserId": "string",
      "modifiedByUserId": "string",
      "organizationId": "string",
      "recipientUserId": "string",
      "isRead": true,
      "fullLink": "string",
      "notificationType": "NOTIFICATION_KIND_UNSPECIFIED",
      "contents": "string",
      "entityId": "string"
    }
  ]
}