Skip to content

POST /api/v1/settings/webhooks allows creation of duplicate webhook events #151

@sagarkumar-webkul

Description

@sagarkumar-webkul

Title:

POST /api/v1/settings/marketing/events Allows Duplicate Marketing Events

Description:

The API currently allows the creation of multiple marketing events with the same name/title. This can lead to confusion in managing and referencing marketing events, especially in campaigns, analytics, or automations.

Affected Endpoint:

  • POST /api/v1/settings/marketing/events

Preconditions:

  • Krayin REST API is up and authenticated.
  • Marketing event creation payload is valid.

Steps to Reproduce:

  1. Send a POST request with the event name: Summer Campaign 2025.
  2. Send the same request again with the exact same event name.
  3. Observe that both requests are accepted and duplicate entries are created.

Actual Result:

video link - https://webkul.chatwhizz.com/share/view-recording/686cfa638482ce50291d6735

  • API accepts both requests and creates multiple marketing events with the same name.

Expected Result:

  • API should reject duplicate names and return a validation error:
    {
      "message": "The event name 'Summer Campaign 2025' already exists.",
      "status": 422
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions