Skip to main content

Documentation Index

Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt

Use this file to discover all available pages before exploring further.

Updates the notification preferences for the current user’s membership in a community.

Parameters

preferences
object
required
An object containing notification preference categories to update.

Returns

Returns a success message if the preferences were updated. Existing preferences not included in the request will be preserved. If the user is not an active member of the community, a 403 Forbidden error will be returned.
  curl -H "Authorization: $ACCESS_TOKEN" \
    -H "Content-Type: application/json" \
    --request PATCH \
    --url https://api.onlydrams.app/api/v1/communities/:community_id/notification_preferences \
    --data '{
      "preferences": {
        "posts": {
          "email": false,
          "push": true
        }
      }
    }'
{
  "message": "Notification preferences updated"
}