# Create the campaign event while creating campaign through API

**URL:** <https://forum.mautic.org/t/create-the-campaign-event-while-creating-campaign-through-api/19995>\
**Category:** Ideas and Feature Requests\
**Tags:** campaigns\
**Created:** [June 23, 2021, 8:57am UTC](https://forum.mautic.org/t/create-the-campaign-event-while-creating-campaign-through-api/19995 "2021-06-23T08:57:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranjal432](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pranjal432/32/5361_2.png) [@pranjal432](https://forum.mautic.org/u/pranjal432)\
**Post date:** [June 23, 2021, 8:57am UTC](https://forum.mautic.org/t/create-the-campaign-event-while-creating-campaign-through-api/19995/1 "2021-06-23T08:57:47Z")

</div>

Hello @silavapi ,  
Greetings for the day,

Please provide us to create the campaign event while creating campaign through API, because as we can’t even publish or make campaign without selecting any one event, so when we create campaign through API, it gives error that you have to make atleast one event for creating campaign.  
So i request you to provide API for that too or if any parameter in campaign creation event in which we can make event for campaign.

Thank You,  
Regards,  
Pranjal Shukla.

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [June 4, 2023, 3:05pm UTC](https://forum.mautic.org/t/create-the-campaign-event-while-creating-campaign-through-api/19995/2 "2023-06-04T15:05:46Z")

</div>

@pranjal432 you can indeed create events by sending them with the campaign. However, other issues prevent a successfull result: connections between and locations of events on the canvas get ignored when creating a campaign via API: [API for campaigns broken? - Support - Mautic Community Forums](https://forum.mautic.org/t/api-for-campaigns-broken/28226)
