# 404 Not Found on Create new Product

**URL:** <https://developer-forum.veeqo.com/t/404-not-found-on-create-new-product/978>\
**Category:** API Queries (How To)\
**Created:** [April 11, 2024, 10:47pm UTC](https://developer-forum.veeqo.com/t/404-not-found-on-create-new-product/978 "2024-04-11T22:47:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![neo\_kit](https://avatars.discourse-cdn.com/v4/letter/n/9B8BFF/32.png) [@neo\_kit](https://developer-forum.veeqo.com/u/neo_kit)\
**Post date:** [April 11, 2024, 10:47pm UTC](https://developer-forum.veeqo.com/t/404-not-found-on-create-new-product/978/1 "2024-04-11T22:47:57Z")

</div>

Getting a 404 on POST to [https://api.veeqo.com/products](https://api.veeqo.com/products) to create new products.

Below is the data.

```auto
{"product":{"title":"Scotts Performance Stabilizer - Street Bike Damper ONLY (Universal) - 4200-08","description":"#14520352","notes":"Cloned from 2579","product_brand_id":26642,"product_variants_attributes":[{"title":"Gold","price":386,"sku_code":"4200-08-Gold","weight_grams":1089}],"images_attributes":[{"src":"URL\/images\/uploaded\/839lg_p14520352_a25635.jpg","display_position":1}]}}

```

---

<div class="post-metadata">

**Author:** ![sebvargs](https://avatars.discourse-cdn.com/v4/letter/s/36C2B4/32.png) [@sebvargs](https://developer-forum.veeqo.com/u/sebvargs)\
**Post date:** [April 16, 2024, 1:59pm UTC](https://developer-forum.veeqo.com/t/404-not-found-on-create-new-product/978/2 "2024-04-16T13:59:14Z")

</div>

Hello @neo_kit ,

I hope you are having a nice day!

Apparently there were some errors on the JSON you shared with us, would you be so kind to use the format below to test on your account?

```auto
{
  "product": {
    "title": "Scotts Performance Stabilizer - Street Bike Damper ONLY (Universal) - 4200-08",
    "description": "#14520352",
    "estimated_delivery": "",
    "notes": "Cloned from 2579",
    "product_brand_id": "",
    "product_variants_attributes": [
      {
        "title": "Gold",
        "sku_code": "4200-08-Gold",
        "cost_price": 0,
        "price": "386",
        "min_reorder_level": "0",
        "quantity_to_reorder": "0",
        "tax_rate": "0",
        "upc_code": "",
        "model_number": "",
        "weight_grams": 1089,
        "weight_unit": "kg"
      }
    ],
    "images_attributes": [
      {
        "src": "URL\/images\/uploaded\/839lg_p14520352_a25635.jpg",
        "display_position": "1"
      }
    ]
  }
}

```

Note: I let product\_brand\_id on null because it seems like this specific attribute points to another table as a foreign key and if the data doesn’t match you will receive the 404 error.

You can also find more information about the post request for products here: [API Docs - Veeqo Developers](https://developer.veeqo.com/docs#/reference/returns/returns/create-a-new-product)

Please let us know if you have any questions or if this worked for you.

---

<div class="post-metadata">

**Author:** ![neo\_kit](https://avatars.discourse-cdn.com/v4/letter/n/9B8BFF/32.png) [@neo\_kit](https://developer-forum.veeqo.com/u/neo_kit)\
**Post date:** [April 16, 2024, 7:34pm UTC](https://developer-forum.veeqo.com/t/404-not-found-on-create-new-product/978/3 "2024-04-16T19:34:21Z")

</div>

@sebvargs Thank you. The problem is the product\_brand\_id.

---

<div class="post-metadata">

**Author:** ![sebvargs](https://avatars.discourse-cdn.com/v4/letter/s/36C2B4/32.png) [@sebvargs](https://developer-forum.veeqo.com/u/sebvargs)\
**Post date:** [April 24, 2024, 3:16pm UTC](https://developer-forum.veeqo.com/t/404-not-found-on-create-new-product/978/4 "2024-04-24T15:16:06Z")

</div>


