post https://api.cakemail.dev/forms
Using the API
from cakemail.models import CreateForm, FormContent
form = api.form.create(
CreateForm(
name='<form name>',
status='active',
content=FormContent(
embedded='<form content>',
linked='<form content>'
),
list_id=<list ID>,
language='en_US'
)
)
<?php
$form = $api->form->create([
'create_form' => new \Cakemail\Lib\Model\CreateForm([
'name' => '<form name>',
'status' => 'active'
'content' => new \Cakemail\Lib\Model\FormContent([
'embedded' => '<form content>',
'linked' => '<form content>'
]),
'list_id' => <list ID>,
'language' => 'en_US'
])
]);