Campaign API error for Creating New Campaign

Your software
My Mautic version is: latest
My PHP version is: 7.4.13
My Database type and version is: mysql 5.7

Your problem
My problem is: I encountered this error when I tried to create a campaign via API. I wondered if anyone had tried this before and what are the main variables I have to include in order to successfully create a new campaign via API. Thanks in advance

These errors are showing:

Start with reading a campaign structure via the API. Each campaign has either a form or a list (segment) as source. You need to add either of them when creating a campaign.

However current other issues prevent a successful campaign creation via API: API for campaigns broken? - Support - Mautic Community Forums