Notifications

Update a notification preference

Changed on

Sets whether the logged in user gets a category of notifications on the channels given (channels, by ID, e.g. { "email": false }), leaving the others as they are. Each must be one of getPreferences' channels that delivers the category (BAD_REQUEST otherwise, e.g. in-app in an app without a notification center), and those that always deliver it (security emails) can't be turned off (BAD_REQUEST). Returns the category's preference, as getPreferences does

patch/api/v1/notifications/preferences/{category}

Request

  • Base URL
    https://app.easyscraper.com
  • URL
    https://app.easyscraper.com/api/v1/notifications/preferences/{category}
  • Auth
    API key in cookie better-auth.session_token

Path parameters

category'security' | 'membership' | 'team' | 'billing' | 'feedback' required

Request body

channelsobject required

Response

OK

category'security' | 'membership' | 'team' | 'billing' | 'feedback' required
channelsobject required
alwaysOnstring[] required

Changes

    • breaking

      added the new required request property

    • breaking

      request body became required

    • breaking

      added subschema #1 to the response body oneOf list for the response status

    • breaking

      removed the required property from the response with the status

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the optional property from the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      endpoint added