title: Creating a Set With Soundcloud's API
body: <p>I'm using Javascript to create a web app with Soundcloud's API for my portfolio. At my current stage I need to be able to create a new set (aka playlist). I was using the sample code from Soundcloud's docs:</p>
  
  <pre><code>SC.connect(function() {
    var tracks = [22448500, 21928809].map(function(id) { return { id: id } });
    SC.post('/playlists', {
      playlist: { title: 'My Playlist', tracks: tracks }
    });
  }); 
  </code></pre>
  
  <p>But I'm getting a 422 error: </p>
  
  <blockquote>
    <p>Unprocessable Entity - The request looks alright, but one or more of
    the parameters looks a little screwy. It's possible that you sent data
    in the wrong format (e.g. an array where we expected a string).</p>
  </blockquote>
  
  <p>But it does not look like anything's missing.</p>