Create/Update single/double opt-in list via API?


New Member
Can we specify single/double opt-in when updating a list via the API? I looked in the API docs but couldn't see anything.

Reason for wanting this ability is that we want to have a list that is double opt-in but we have a requirement in some circumstances to add a subscriber via the API without the confirmation e-mail.

I was thinking of quickly updating the list to single opt-in, adding the subscriber and then updating the list back to double opt-in. Or am I going about this the wrong way?


@Colin - If you want to update a list with single/double opt-in via API simply insert this param for single: 'opt_in' => 'single' and 'double' for double
$response = $endpoint->update('LIST-UNIQUE-ID', array(
    // required
    'general' => array(
        'name'          => 'My list created from the API - now updated!', // required
        'description'   => 'This is a test list, created from the API.', // required
        'opt_in'        => 'single',
That's perfect. Thank you. Might be worth updating the API documentation (or is it there and I couldn't see it)?