err_item_emptyTitle at update item call

  • cartespostales_de

    69 messages

    Allemagne

    Want to update the price for some items, but it fails with err_item_emptyTitle.

    Just updating the price, not the title or any other fields. it worked in past for several years, what' wrong now?

    Does not work with Soap API and not with REST API, both return same error.

    $postData = array(
    "item" => array(
    "fixed_price" => $preis,
    )
    );


    Please fix it. Thanks.
  • cartespostales_de

    69 messages

    Allemagne

    Want to update the price for some items, but it fails with err_item_emptyTitle.

    Just updating the price, not the title or any other fields. it worked in past for several years, what' wrong now?

    Does not work with Soap API and not with REST API, both return same error.

    $postData = array(
    "item" => array(
    "fixed_price" => $preis,
    )
    );


    Please fix it. Thanks.
    • Posté le 12 avr. 2018 à 05:59
    • #849233
    should be:

    $postData = array(
    "item" => array(
    "fixed_price" => 4.00,
    )
    );
  • @thomas
    Administrateur

    348 messages

    Belgique

    Hello,

    Nothing has changed recently to update an existing item.

    Did you use the PUT method with the right route syntax (/item/:ID?token=:TOKEN) ?

    You can find the doc to update an item here : Lien (https)

    Keep us informed if the error persists.

    Kind regards
  • cartespostales_de

    69 messages

    Allemagne

    Hello,

    Nothing has changed recently to update an existing item.

    Did you use the PUT method with the right route syntax (/item/:ID?token=:TOKEN) ?

    You can find the doc to update an item here : Lien (https)

    Keep us informed if the error persists.

    Kind regards
    • Posté le 12 avr. 2018 à 10:16
    • #849329
    Yes, of course I use the right syntax. If not, I would get another failure message than 'err_item_emptyTitle', Right? I would get 'This request is not authorized ! Authenticate first' or similar error messages,depending on missing item ID or wrong item ID, missing token, wrong token, ... etc.

    Really, I do not understand your reply.

    Lien (http) =...
    filled with
    http_build_query(array(
    "item" => array(
    "fixed_price" => 4.00,
    )
    ))
    as like as your docu says returns error: 'err_item_emptyTitle'.

    But I do not want to update the title, just the price.

    You are the Administrator. Just take a look into my account, use my token and update the item 345952891 for me, please.

    This is my code:
    $postData = array("item" => array("fixed_price" => '4.00'));
    $curlurl = " Lien (http) ;
    $ch = curl_init();
    curl_setopt ($ch, CURLOPT_URL, $curlurl);
    curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($postData) );
    curl_setopt ($ch, CURLOPT_CUSTOMREQUEST, "PUT");
    curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
    $xml_response = curl_exec($ch);

    Same code as like as in your docu. Please try and please let me know if you get error message or not.

    Thanks.
  • @thomas
    Administrateur

    348 messages

    Belgique

    Yes, of course I use the right syntax. If not, I would get another failure message than 'err_item_emptyTitle', Right? I would get 'This request is not authorized ! Authenticate first' or similar error messages,depending on missing item ID or wrong item ID, missing token, wrong token, ... etc.

    Really, I do not understand your reply.

    Lien (http) =...
    filled with
    http_build_query(array(
    "item" => array(
    "fixed_price" => 4.00,
    )
    ))
    as like as your docu says returns error: 'err_item_emptyTitle'.

    But I do not want to update the title, just the price.

    You are the Administrator. Just take a look into my account, use my token and update the item 345952891 for me, please.

    This is my code:
    $postData = array("item" => array("fixed_price" => '4.00'));
    $curlurl = " Lien (http) ;
    $ch = curl_init();
    curl_setopt ($ch, CURLOPT_URL, $curlurl);
    curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($postData) );
    curl_setopt ($ch, CURLOPT_CUSTOMREQUEST, "PUT");
    curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
    $xml_response = curl_exec($ch);

    Same code as like as in your docu. Please try and please let me know if you get error message or not.

    Thanks.
    • Posté le 13 avr. 2018 à 05:07
    • #849647
    Hello,

    There was indeed an error. We corrected it. The fix will be there in the next deployment.
    I already updated your item.

    Thanks for your report.
  • @thomas
    Administrateur

    348 messages

    Belgique

    Hello,

    The deployment is done : you can now update your items with the API.

    We're sorry for the inconvenience.

    Regards,
  • cartespostales_de

    69 messages

    Allemagne

    :applause: Merci beaucoup ! :cool2:

Rejoignez la communauté des collectionneurs !

S'inscrire Se connecter