--- layout: m1x_soap title: Product Tag Remove ---
Aliases: product_tag
Allows you to remove an existing product tag.
Arguments:
| Type | Name | Description |
|---|---|---|
| string | sessionId | Session ID |
| string | tagId | Tag ID |
Return:
| Type | Description |
|---|---|
| boolean\int | True (1) if the product tag is removed |
Faults:
| Fault Code | Fault Message |
|---|---|
| 104 | Requested tag does not exist. |
| 107 | Error while removing tag. Details in error message. |
$client = new SoapClient('http://magentohost/api/soap/?wsdl');
// If somestuff requires api authentification,
// then get a session token
$session = $client->login('apiUser', 'apiKey');
$result = $client->call($session, 'catalog_product_tag.remove', '3');
var_dump ($result);
$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy->login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary
$result = $proxy->catalogProductTagRemove($sessionId, '3');
var_dump($result);
$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl');
$sessionId = $proxy->login((object)array('username' => 'apiUser', 'apiKey' => 'apiKey'));
$result = $proxy->catalogProductTagRemove((object)array('sessionId' => $sessionId->result, 'tagId' => '3'));
var_dump($result->result);