POST /actions/user/notifications/mark-all-as-read

Mark all notifications as read for the current user.

Responses

  • 200 application/json

    Success object

    Hide response attribute Show response attribute object
    • success boolean

      Operation success status

POST /actions/user/notifications/mark-all-as-read
curl -X POST "http://api.example.com/actions/user/notifications/mark-all-as-read" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
import requests

url = "http://api.example.com/actions/user/notifications/mark-all-as-read"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json"
}
params = {}
payload = None

response = requests.post(
    url,
    headers=headers,
    params=params,
    json=payload
)

response.raise_for_status()

if response.content:
    print(response.json())
curl \
 --request POST 'http://api.example.com/actions/user/notifications/mark-all-as-read' \
 --header "Authorization: $API_KEY"
Response examples (200)
{
  "success": true
}