# Error on update product\_variant title

**URL:** <https://developer-forum.veeqo.com/t/error-on-update-product-variant-title/75>\
**Category:** API Queries (How To)\
**Created:** [October 17, 2017, 4:15pm UTC](https://developer-forum.veeqo.com/t/error-on-update-product-variant-title/75 "2017-10-17T16:15:27Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andriy](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/andriy/32/28_2.png) [@Andriy](https://developer-forum.veeqo.com/u/Andriy)\
**Post date:** [October 17, 2017, 4:15pm UTC](https://developer-forum.veeqo.com/t/error-on-update-product-variant-title/75/1 "2017-10-17T16:15:27Z")

</div>

Hi there,  
I have the following request:

```auto
Veeqo::Product.update(5864196, {product:{product_variants_attributes:[{id: 11216115, title: ''}]}}.merge(connection: User.find(6).veeqo_connection))

```

That produced 404 error.  
I think I can’t set empty title for products with only one sellable right now.  
It would be great if you can check that 🙂  
Thanx  
PS:  
I’ve checked that product, and I have that sellable with that id present inside:

```auto
Veeqo::Product.find(5864196, connection: User.find(6).veeqo_connection)[:sellables].pluck(:id)
D, [2017-10-17T16:13:37.672808 #4] DEBUG -- : User Load (4.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
=> [11216115]

```

---

<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:** [October 17, 2017, 4:35pm UTC](https://developer-forum.veeqo.com/t/error-on-update-product-variant-title/75/2 "2017-10-17T16:35:13Z")

</div>

Title is a required field for _products_ and _product\_variants_

---

<div class="post-metadata">

**Author:** ![Andriy](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/andriy/32/28_2.png) [@Andriy](https://developer-forum.veeqo.com/u/Andriy)\
**Post date:** [October 17, 2017, 4:39pm UTC](https://developer-forum.veeqo.com/t/error-on-update-product-variant-title/75/3 "2017-10-17T16:39:57Z")

</div>

Phil,  
Take a look on product with id 8929630.  
Sellables look like:  
 ![22 PM](https://global.discourse-cdn.com/standard10/uploads/veeqo/original/1X/f0f985d50051f8da4f5bb6d00763b1814f5c42a2.png)  
Here I have empty title.  
Because I’m here with same problem(duplicating product titles in order).

---

<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:** [October 17, 2017, 4:50pm UTC](https://developer-forum.veeqo.com/t/error-on-update-product-variant-title/75/4 "2017-10-17T16:50:15Z")

</div>

Andriy, does it work if you try and set the title to _“.”_ or\_“null”\_

I think the way it works is the request gets 404’d if the title field is empty.

I’m not in the office at the moment so I can’t test anything myself till tomorrow.

---

<div class="post-metadata">

**Author:** ![Andriy](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/andriy/32/28_2.png) [@Andriy](https://developer-forum.veeqo.com/u/Andriy)\
**Post date:** [October 17, 2017, 4:51pm UTC](https://developer-forum.veeqo.com/t/error-on-update-product-variant-title/75/5 "2017-10-17T16:51:09Z")

</div>

Yep, I can try  
Thanks Phil  
I’ll keep you updated

---

<div class="post-metadata">

**Author:** ![Andriy](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/andriy/32/28_2.png) [@Andriy](https://developer-forum.veeqo.com/u/Andriy)\
**Post date:** [October 17, 2017, 4:53pm UTC](https://developer-forum.veeqo.com/t/error-on-update-product-variant-title/75/6 "2017-10-17T16:53:12Z")

</div>

I tried both nil and ., also even string “HELLO” does not work. Still 404 error.

---

<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:** [October 17, 2017, 5:02pm UTC](https://developer-forum.veeqo.com/t/error-on-update-product-variant-title/75/7 "2017-10-17T17:02:58Z")

</div>

Can you try including the _product\_title_ in with the request.

{product: {title: ‘Unchanged-Title’, product\_variants\_attributes:[{id: …and so on

---

<div class="post-metadata">

**Author:** ![Andriy](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/andriy/32/28_2.png) [@Andriy](https://developer-forum.veeqo.com/u/Andriy)\
**Post date:** [October 17, 2017, 5:05pm UTC](https://developer-forum.veeqo.com/t/error-on-update-product-variant-title/75/8 "2017-10-17T17:05:01Z")

</div>

Same thing here  
404 error

---

<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:** [October 17, 2017, 5:12pm UTC](https://developer-forum.veeqo.com/t/error-on-update-product-variant-title/75/9 "2017-10-17T17:12:19Z")

</div>

I’m out of ideas for now. I’ll have another look first thing tomorrow.

---

<div class="post-metadata">

**Author:** ![Andriy](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/andriy/32/28_2.png) [@Andriy](https://developer-forum.veeqo.com/u/Andriy)\
**Post date:** [October 17, 2017, 5:13pm UTC](https://developer-forum.veeqo.com/t/error-on-update-product-variant-title/75/10 "2017-10-17T17:13:42Z")

</div>

Okay, I’ll wait for your response.  
Thanks a lot 🙂

---

<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:** [October 18, 2017, 8:34am UTC](https://developer-forum.veeqo.com/t/error-on-update-product-variant-title/75/11 "2017-10-18T08:34:52Z")

</div>

I can’t replicate this error at the moment.  
The below json request worked on a product with just one sellable.

```
  {
  "product": {
    "title": "Bobble Hat - Title",
    "product_variants_attributes": [
      {
        "id": 14504036,
        "title": ""
      }
    ]
  }
}

```

Ill investigate your product specifically now.

---

<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:** [October 18, 2017, 8:44am UTC](https://developer-forum.veeqo.com/t/error-on-update-product-variant-title/75/12 "2017-10-18T08:44:36Z")

</div>

Unfortunately ID: `11216115` is a kit, unfortunately kits are not editable through the API at present.

---

<div class="post-metadata">

**Author:** ![Andriy](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/andriy/32/28_2.png) [@Andriy](https://developer-forum.veeqo.com/u/Andriy)\
**Post date:** [October 18, 2017, 8:56am UTC](https://developer-forum.veeqo.com/t/error-on-update-product-variant-title/75/13 "2017-10-18T08:56:44Z")

</div>

Okay:c  
thanx a lot for answer)
