Skip to content

API Reference / Notifications

POST /notifications/{notification_id}/mark_as_read

Marks given notification as read

Marks given notification as read

Maintained by the OnePageCRM engineering team

Path parameters

Name Type Description
notification_id req string Notification ID

Responses

201 Created
  • statusintegerint32

    Response code

  • messagestring

    Response message

  • timestampintegerunix-timestamp

    Response time

  • dataobject
    object fields β†’
    • notificationobject

      A serialised notification. There are different types of notifications, each can have its own properties

      object fields β†’
      • idstringbson-id

        ID of the notification

      • typestring

        Type of the notification

        enum: assigned_action Β· action_with_time Β· contact_assigned Β· call Β· meeting Β· email Β· link Β· note

      • bystring

        User name that caused the notification

      • readboolean

        Tells if notification was marked as read

      • user_idstringbson-id

        The ID of affected user, ID of assignee user

      • contact_idstringbson-id

        The ID of a contact related to which the notification has been created

      • created_atstring

        Date which tells when the notification was created

      • modified_atstring

        Date which tells when the notification was last updated

      • mobile_dataobject

        Data created for the purpose of push notifications for mobile apps

        object fields β†’
        • titlestring

          Title of push notification

        • bodystring

          Body of push notification

        • action_typestring

          Type of action

Standard error responses: 400 Β· 401 Β· 403 Β· 404 Β· 409 Β· 500 β€” shared across the API. See Errors.

Related guides