/v1/communities/{community_id}/actors/{actor_id}/notifications/{notification_id}AuthMark a single notification as read or unread.
Idempotent: marking an already-read row read again is a no-op 204. Returns 404 if the notification belongs to a different actor.
Path parameters
community_id*stringCommunity UUID.
actor_id*stringSocial actor UUID (returned from POST /actors).
notification_id*stringNotification UUID returned from the list endpoint.
Request body
read*boolean`true` to mark read, `false` to mark unread.
Example: true
Response · 204
Read state updated.
Example
Request
PATCH https://social.productcraft.co/v1/communities/{community_id}/actors/{actor_id}/notifications/{notification_id}
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"read": true
}import { Social } from "@productcraft/social";
// Reads PRODUCTCRAFT_API_KEY from the environment
const social = new Social();
await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").actors.notifications.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "11111111-1111-1111-1111-111111111111", { read: true });social.community(…).actors.notifications.update(actorId, notificationId, params, options?): void