Create a form

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'
    ])
]);
Language
Authorization
OAuth2
Click Try It! to start a request and see the response here!