delete https://api.chartmogul.com/v1/customers//attributes/tags
Removes tags from a given customer.
Examples
curl -X DELETE "https://api.chartmogul.com/v1/customers/cus_de305d54-75b4-431b-adb2-eb6b9e546012/attributes/tags" \
-u YOUR_API_KEY: \
-H "Content-Type: application/json" \
-d '{
"tags": ["Prio1", "discountable"]
}'
customer = ChartMogul::Customer.retrieve('cus_de305d54-75b4-431b-adb2-eb6b9e546012')
customer.remove_tags!('Prio1', 'discountable')
ChartMogul.Tag.remove(config, "cus_de305d54-75b4-431b-adb2-eb6b9e546012", {
"tags": ["important1", "Prio2"]
}, function (err, res) {
// asynchronously called
});
<?php
$customer = ChartMogul\Customer::retrieve(
"cus_de305d54-75b4-431b-adb2-eb6b9e546012");
$customer->removeTags("important1", "Prio2");
?>
api.RemoveTagsFromCustomer(
"cus_d3b1672e-edff-11e6-950b-d3d5a143d29a",
[]string{"important1", "Prio2"})
chartmogul.Tags.remove(
config,
uuid="cus_d3b1672e-edff-11e6-950b-d3d5a143d29a",
data={
"tags": ["important1", "Prio2"]})
Result Format
{
"tags": ["engage", "unit loss", "important"]
}
['engage', 'unit loss', 'important']
{
"tags": ["engage", "unit loss", "important"]
}
<?php
array (
0 => 'engage',
1 => 'unit loss',
2 => 'important'
)
?>
(*chartmogul.TagsResult)(0xc0420c8bc0)({
Tags: ([]string) (len=1) {
(string) (len=10) "important2"
}
})
<Tags{tags=[
'important2'
]}>
In the response, tags
contains an Array with all the tags now on this customer.