title: Invalid JSON payload received. Unknown name \"row\" at 'payload': Cannot find field on google automl api
body: <p>I am trying to implement google automl api:
  <a href="https://cloud.google.com/automl-tables/docs/predict" rel="nofollow noreferrer">https://cloud.google.com/automl-tables/docs/predict</a></p>
  <p>The api docs says I need to post data in following format:</p>
  <pre><code>{
    &quot;payload&quot;: {
      &quot;row&quot;: {
       &quot;values&quot;: [value1, value2,...]
           }
        }
  }
  </code></pre>
  <p>But when I to post data in same format I get the following error:</p>
  <pre><code>{
    &quot;error&quot;: {
      &quot;code&quot;: 400,
      &quot;message&quot;: &quot;Invalid JSON payload received. Unknown name \&quot;row\&quot; at 'payload': Cannot find field.&quot;,
      &quot;status&quot;: &quot;INVALID_ARGUMENT&quot;,
      &quot;details&quot;: [
        {
      &quot;@type&quot;: &quot;type.googleapis.com/google.rpc.BadRequest&quot;,
      &quot;fieldViolations&quot;: [
        {
          &quot;field&quot;: &quot;payload&quot;,
          &quot;description&quot;: &quot;Invalid JSON payload received. Unknown name \&quot;row\&quot; at 'payload': Cannot find field.&quot;
        }
      ]
        }
      ]
    }
  }
  </code></pre>
  <p>Here is my curl request:</p>
  <pre><code>curl --location --request POST 'https://automl.googleapis.com/v1/projects/project-id/locations/us-central1/models/TBLID:predict' \
  --header 'Content-Type: application/json; charset=utf-8;' \
  --header 'Accept-Charset: utf-8' \
  --header 'Authorization: Bearer token here' \
  --data-raw '{
   &quot;payload&quot;: {
  &quot;row&quot;: {
    &quot;values&quot;: [
      &quot;&quot;,
      &quot;4.900000&quot;,
      &quot;&quot;
    ]
  }
   }
  }'
  </code></pre>
  <p>I am not sure what is causing this error.
  Can anyone help with this problem thanks</p>