Create a custom attribute

Using the SDK

from cakemail.models import CreateCustomAttribute

custom_attribute = api.custom_attribute.create(
    list_id=<list ID>,
    create_custom_attribute=CreateCustomAttribute(
        name='<attribute name>',
        type='<attribute type>'
    )
)
<?php

$customAttribute = $api->custom_attribute->create([
    'list_id' => <list ID>,
    'create_custom_attribute' => new \Cakemail\Lib\Model\CreateCustomAttribute([
        'name' => '<attribute name>',
        'type' => '<attribute type>'
    ])
]);
Language
Authentication
OAuth2
Click Try It! to start a request and see the response here!