External API
Remove tags from a customer
Remove tags from a customer in Proto, from your own system.
Removes tags from a customer – for example, remove Renewal due once they’ve renewed. The tags stay in your teamspace, so you can use them again. Not sure how to send a request? See Make your first request.
Request
Send a PUT request to:
https://v3-api.proto.cx/api/platform/v1/customers/YOUR_TEAMSPACE_ID/customer/YOUR_CUSTOMER_ID/remove-tags
In the body, list the tags to remove by name. In the address and the body, replace anything starting with YOUR_ with your own – YOUR_CUSTOMER_ID is your ID for the customer, the one you used when you created them:
{
"tags": ["Renewal due"]
}
To remove tags by ID instead, send "ids": ["YOUR_TAG_ID"] in place of tags. Send one or the other, not both.
| Field | Required | What it is |
|---|---|---|
tags | One of the two | A list of the tags’ names, exactly as they appear in Proto. Capital letters count. |
ids | One of the two | A list of the tags’ IDs |
Response
Proto replies 200 OK:
{ "success": true }
success is always true – also for a tag the customer doesn’t have, or that isn’t in your teamspace. If a tag is still on the customer, check its name – capital letters count.
Errors
| You get | What it means |
|---|---|
400 | The body has neither tags nor ids, or has both. |
404 | No customer with this ID is in your teamspace. |
For errors any request can return, see If something goes wrong.