/v1/communities/{community_id}/actors/{actor_id}/notifications/read-allAuthMark every unread notification for the actor as read.
Single bulk write. Optional `before` ISO timestamp scopes to rows older than that — useful for "mark all older than today as read" UX. Returns the number of rows that flipped.
Path parameters
community_id*stringCommunity UUID.
actor_id*stringSocial actor UUID (returned from POST /actors).
Request body
beforestringOptional ISO timestamp; only flips rows older than this. Omit to flip all unread.
Example: "2026-05-01T00:00:00.000Z"
Response · 200 Bulk update applied; `updated` is the row count.
updated*numberNumber of rows whose `read_at` flipped from null to now().
Example: 12
Example
Request
POST https://social.productcraft.co/v1/communities/{community_id}/actors/{actor_id}/notifications/read-all
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"before": "2026-05-01T00:00:00.000Z"
}import { Social } from "@productcraft/social";
// Reads PRODUCTCRAFT_API_KEY from the environment
const social = new Social();
const result = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").actors.notifications.markAllRead("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { before: "2026-05-01T00:00:00.000Z" });social.community(…).actors.notifications.markAllRead(actorId, params?, options?): Social.MarkAllReadResponse
Response
{
"updated": 12
}