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:
- Send a
POST request with the event name: Summer Campaign 2025.
- Send the same request again with the exact same event name.
- 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
}
Title:
POST /api/v1/settings/marketing/eventsAllows Duplicate Marketing EventsDescription:
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/eventsPreconditions:
Steps to Reproduce:
POSTrequest with the event name:Summer Campaign 2025.Actual Result:
video link - https://webkul.chatwhizz.com/share/view-recording/686cfa638482ce50291d6735
Expected Result:
{ "message": "The event name 'Summer Campaign 2025' already exists.", "status": 422 }