Error on update product_variant title

Hi there,
I have the following request:

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 :slight_smile:
Thanx
PS:
I’ve checked that product, and I have that sellable with that id present inside:

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]

Title is a required field for products and product_variants

Phil,
Take a look on product with id 8929630.
Sellables look like:
22 PM
Here I have empty title.
Because I’m here with same problem(duplicating product titles in order).

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.

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

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

Can you try including the product_title in with the request.

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

Same thing here
404 error

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

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

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.

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

Okay:c
thanx a lot for answer)