Creating Campaign through rest API throws At least one event is required

Hi all,

Thanks in advance for any help you can give me. I am trying to create a new campaign using the API from a custom CRM.

I am sending my request through GuzzleHttp with an array as follows(per Mautic documentation):

Code:
$array = [ 'name' => $campaign->name, 'description' => $campaign->description, 'isPublished' => 1 ];
But I get an error 400 bad request: At least one event is required. Use the Launch Campaign Builder.
I cannot use the API library for Mautic as it does not authenticate. Is there a restful way to create a Campaign for Mautic?

Hi all,
Thanks in advance for any help you can give me. I am trying to create a new campaign using the API from a custom CRM.
I am sending my request through GuzzleHttp with an array as follows(per Mautic documentation):

$array = [ 'name' => $campaign->name, 'description' => $campaign->description, 'isPublished' => 1 ];
But I get an error 400 bad request: At least one event is required. Use the Launch Campaign Builder.
I cannot use the API library for Mautic as it does not authenticate. Is there a restful way to create a Campaign for Mautic?