title: One or more parameter values were invalid: Missing the key id in the item status code: 400
body: <p>I have made a table <code>Blog</code> with DynamoDB.</p>
  <p>I want to insert the 2 parameters <code>title</code> and <code>content</code> in it which I am fetching from an HTML form.</p>
  <p>The parameters <code>blogContent</code> and <code>blogTitle</code> seem to be valid when I print these 2 in the console.</p>
  <p>But when I am inserting them in the table i get the error:</p>
  <pre><code>One or more parameter values were invalid: Missing the key id in the item
     status code: 400, request id: XXX&quot;
  </code></pre>
  <pre><code>type Item struct {
      id                 int
      content            string
      bodycontentversion string
      claps              int
      comments           int
      imageid            int
      title              string
      views              int
  }
  
  
  func awsblog() {
  
      sess, err := session.NewSession(&amp;aws.Config{
          Region: aws.String(&quot;us-east-1&quot;)},
      )
  
      svc := dynamodb.New(sess)
  
      item := Item{
          id:                 1234,
          content:            blogContent,
          bodycontentversion: &quot;abcd&quot;,
          claps:              5,
          comments:           10,
          imageid:            1234,
          title:              blogTitle,
          views:              10,
      }
  
      av, err := dynamodbattribute.MarshalMap(item)
      if err != nil {
          fmt.Println(&quot;Got error marshalling new item:&quot;)
          fmt.Println(err.Error())
          os.Exit(1)
      }
  
      tableName := &quot;Blog&quot;
  
      input := &amp;dynamodb.PutItemInput{
          Item:      av,
          TableName: aws.String(tableName),
      }
  
      _, err = svc.PutItem(input)
      if err != nil {
          fmt.Println(&quot;Got error calling PutItem:&quot;)
          fmt.Println(err.Error())
          os.Exit(1)
      }
  
      fmt.Println(&quot;Successfully updated '&quot;)
  }
  
  </code></pre>
  <p><a href="https://i.stack.imgur.com/ZuyE9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZuyE9.png" alt="enter image description here" /></a></p>