title: Can't add document from Firestore API. Error 400 Resource name ... lacks \"projects\" at index 0
body: <p>I try to add one document from Firestore API Explorer.</p>
  
  <p>This is the data i try to insert:</p>
  
  <pre><code>POST https://firestore.googleapis.com/v1/projects/myProjetID/databases/(default)/documents/myCollection/2019/04?documentId=10&amp;key={YOUR_API_KEY}
  
  {
   "fields": {
    "field0": {
     "referenceValue": "ref0"
    }
   }
  }
  </code></pre>
  
  <p>I'm having this error:</p>
  
  <pre><code>cache-control:  private
  content-encoding:  gzip
  content-length:  143
  content-type:  application/json; charset=UTF-8
  date:  Mon, 08 Apr 2019 09:24:09 GMT
  server:  ESF
  vary:  Origin, X-Origin, Referer
  
  {
   "error": {
    "code": 400,
    "message": "Resource name \"ref0\" lacks \"projects\" at index 0.",
    "status": "INVALID_ARGUMENT"
   }
  }
  </code></pre>
  
  <p>I don't know what's wrong.</p>