OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/docs/api/apiv3/paths/notifications_read.yml

47 lines
1.7 KiB

# /api/v3/notifications/read_ian
---
post:
summary: Read all notifications
operationId: read_notifications
tags:
- Notifications
description: |-
Marks the whole notification collection as read. The collection contains only elements the authenticated user can
see, and can be further reduced with filters.
parameters:
- name: filters
in: query
description: |-
JSON specifying filter conditions.
Accepts the same format as returned by the [queries](https://www.openproject.org/docs/api/endpoints/queries/)
endpoint. Currently supported filters are:
+ id: Filter by primary key
+ project: Filter by the project the notification was created in
+ reason: Filter by the reason, e.g. 'mentioned' or 'assigned' the notification was created because of
+ resourceId: Filter by the id of the resource the notification was created for. Ideally used together with the
`resourceType` filter.
+ resourceType: Filter by the type of the resource the notification was created for. Ideally used together with
the `resourceId` filter.
example: '[{ "reason": { "operator": "=", "values": ["mentioned"] } }]'
required: false
schema:
type: string
responses:
'204':
description: OK
'400':
description: Returned if the request is not properly formatted.
content:
application/hal+json:
schema:
$ref: '../components/schemas/error_response.yml'
example:
_type: Error
errorIdentifier: urn:openproject-org:api:v3:errors:InvalidQuery
message:
- Filters Invalid filter does not exist.