Remove Tags from a Customer

DELETE https://api.chartmogul.com/v1/customers/{CUSTOMER_UUID}/attributes/tags

Removes tags from a given customer.

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"]},
)
{
  "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"
]}>

Path parameters

customer_uuid string required
The ChartMogul UUID of the customer.

Body parameters

tags array(string) required
An Array of tags to be removed from the customer.

Response

In the response, tags contains an Array with all the tags now on this customer.