# 500 on create product POST

**URL:** <https://developer-forum.veeqo.com/t/500-on-create-product-post/100>\
**Category:** API Queries (How To)\
**Created:** [March 5, 2018, 3:14pm UTC](https://developer-forum.veeqo.com/t/500-on-create-product-post/100 "2018-03-05T15:14:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![php3ch0](https://avatars.discourse-cdn.com/v4/letter/p/59B6F8/32.png) [@php3ch0](https://developer-forum.veeqo.com/u/php3ch0)\
**Post date:** [March 5, 2018, 3:14pm UTC](https://developer-forum.veeqo.com/t/500-on-create-product-post/100/1 "2018-03-05T15:14:17Z")

</div>

Im sure it is something I am missing in the request but cannot seem to spot it a little help please. Even tried stripping down to minimum required vars

request sent:

```auto
{  
   "product":{  
      "title":"test product",
      "product_variants_attributes":[  
         {  
            "title":"test112",
            "sku_code":"test112",
            "price":"0.01",
            "tax_rate":"0.2",
            "weight_grams":"0"
         }
      ],
      "images_attributes":{  
         "src":"https://dirtbusters.co.uk/images/products/test-product-20180305130341.png",
         "display_position":1
      }
   }
}

```

---

<div class="post-metadata">

**Author:** ![phil](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/phil/32/43_2.png) [@phil](https://developer-forum.veeqo.com/u/phil)\
**Post date:** [March 5, 2018, 3:29pm UTC](https://developer-forum.veeqo.com/t/500-on-create-product-post/100/2 "2018-03-05T15:29:00Z")

</div>

Hey,

This JSON just worked for me to create a product:

```auto
{
  "product": {
    "title": "Bobble Hat - Title",
    "product_variants_attributes": [
      {
        "title": "One Size - ProdVariantTitle",
        "sku_code": "b-hat-1",
        "price": "10"
      }
    ]
  }
}

```

---

<div class="post-metadata">

**Author:** ![techosunny](https://avatars.discourse-cdn.com/v4/letter/t/00F991/32.png) [@techosunny](https://developer-forum.veeqo.com/u/techosunny)\
**Post date:** [March 5, 2018, 3:31pm UTC](https://developer-forum.veeqo.com/t/500-on-create-product-post/100/3 "2018-03-05T15:31:38Z")

</div>

Just change your **images\_attributes**

```
{  
   "product":{  
      "title":"test product",
      "product_variants_attributes":[  
         {  
            "title":"test112",
            "sku_code":"test112",
            "price":"0.01",
            "tax_rate":"0.2",
            "weight_grams":"0"
         }
      ],
      "images_attributes":[
            {  
              "src":"https://dirtbusters.co.uk/images/products/test-product-20180305130341.png",
              "display_position":1
            }
    ],
   }
}

```

It will surely work. Check documentation
