title: Using Mautic API, how do I send the parameter "lists" when creating an email?
body: <p>The documentation for creating emails using Mautic API is:
  <a href="https://developer.mautic.org/#create-email" rel="nofollow noreferrer">https://developer.mautic.org/#create-email</a></p>
  
  <p>I can not create an email without specify the parameter <strong>lists</strong>.
  The <strong>lists</strong> parameter is specified like this:</p>
  
  <p><strong>lists array   Array of segment IDs which should be added to the segment email</strong></p>
  
  <p>How can I send the parameter lists via HTTP post using <strong>Python</strong> so that Mautic API can undestand it?</p>
  
  <p>This creates a email of type "template" (default) in Mautic... </p>
  
  <pre><code>emailData = {    
      'name': 'Email-teste',
      'subject': 'Assunto teste',
      'isPublished': '1',
      'language': 'pt_BR',`enter code here`
      'customHtml' : '&lt;strong&gt;html do email&lt;strong&gt;'
  }       
  </code></pre>
  
  <p>But what I need is to create an email of type "<strong>list</strong>".</p>
  
  <p>For that, it is mandatory to specify each list ids.
  Lists are the segments in Mautic.... 
  I have a segment with ID 7!</p>
  
  <p>How can I send the segments IDs to Mautic API using POST (Python requests)?</p>
  
  <pre><code>emailData = {    
      'name': 'Email-teste',
      'subject': 'Assunto teste',
      'emailType': 'list',
      'lists': '7',    
      'isPublished': '1',
      'language': 'pt_BR',
      'customHtml' : '&lt;strong&gt;html do email&lt;strong&gt;'
  }       
  </code></pre>
  
  <p>I tried many ways... and I always get the errror:</p>
  
  <pre><code>u'errors': [{u'code': 400,
                u'details': {u'lists': [u'This value is not valid.']},
                u'message': u'lists: This value is not valid.'}]}
  </code></pre>
  
  <p>I am sure I have a segment with ID 7, as I can see in Mautic interface.</p>
  
  <p>I am using a modified version of <a href="https://github.com/divio/python-mautic" rel="nofollow noreferrer">https://github.com/divio/python-mautic</a></p>