curl https://api.thanxsandbox.com/partner/tags \
-X DELETE \
-H 'X-ClientId: {client_id}' \
-H 'Accept-Version: v4.0' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access_token}' \
-d '{
"merchant_id": "weroifs",
"user_ids": [
"wroeiu2304hfwf",
"73bf1f46769dwr"
],
"key": "allergens"
}'
{}
Tags
Delete Tags
DELETE
/
partner
/
tags
curl https://api.thanxsandbox.com/partner/tags \
-X DELETE \
-H 'X-ClientId: {client_id}' \
-H 'Accept-Version: v4.0' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access_token}' \
-d '{
"merchant_id": "weroifs",
"user_ids": [
"wroeiu2304hfwf",
"73bf1f46769dwr"
],
"key": "allergens"
}'
{}
Scope required:
tags.writeParameters
string
required
Merchant ID
array<string>
required
User IDs (500 max per request)
user_ids must be each user’s Thanx identifier — the value returned as id by
Get Users. An ID copied from a dashboard URL or a
customer-data/SFTP export is a different encoding and will not match: the
request returns 200 with zero tags deleted and no error. Confirm one test
user matches before running a bulk delete.string
required
Tag Key
Response
curl https://api.thanxsandbox.com/partner/tags \
-X DELETE \
-H 'X-ClientId: {client_id}' \
-H 'Accept-Version: v4.0' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access_token}' \
-d '{
"merchant_id": "weroifs",
"user_ids": [
"wroeiu2304hfwf",
"73bf1f46769dwr"
],
"key": "allergens"
}'
{}
⌘I