title: Yii2 RESTful Webservice: JSON Request Format
body: <p>this is my first question:</p>
  
  <p>I'm trying to build a RESTful Webservice with Yii2. The Controller extends from ActiveController and has the corresponding model. Reading of data works fine and without problems.</p>
  
  <p>But when I try to create new Objects I run into an error. I use the Chrome extension Advanced Rest Client and POST the following data:</p>
  
  <pre><code>{
      "team": 1
  }
  </code></pre>
  
  <p>I also tried different formats.</p>
  
  <p>But I always get this response:</p>
  
  <pre><code>[{
      "field":"team",
      "message":"Team cannot be blank."
  }]
  </code></pre>
  
  <p>Do you have any suggestions what I'm doing wrong?</p>
  
  <p>Thanks!</p>