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"],
});
$customer = ChartMogul\Customer::retrieve("cus_de305d54-75b4-431b-adb2-eb6b9e546012");
$customer->removeTags("important1", "Prio2");
api.RemoveTagsFromCustomer(
"cus_de305d54-75b4-431b-adb2-eb6b9e546012",
[]string{"important1", "Prio2"}
)
chartmogul.Tags.remove(
config,
uuid="cus_de305d54-75b4-431b-adb2-eb6b9e546012",
data={"tags": ["important1", "Prio2"]},
)
Result Format
{
"tags": ["engage", "unit loss", "important"]
}
["engage", "unit loss", "important"]
{
tags: ["engage", "unit loss", "important"]
}
array (
0 => "engage",
1 => "unit loss",
2 => "important"
)
(*chartmogul.TagsResult)(0xc0420c8bc0)({
Tags: ([]string) (len=3) {
(string) (len=6) "engage",
(string) (len=9) "unit loss",
(string) (len=9) "important"
}
})
<Tags{tags=[
"engage", "unit loss", "important"
]}>
In the response, tags
contains an Array with all the tags now on this customer.