curl "https://api.thanxsandbox.com/users/${user_id}/tags?key=allergens" \
-X DELETE \
-H "Accept-Version: v4.0" \
-H "Accept: application/json" \
-H "X-ClientId: ${client_id}"
{}
Sandbox Testing
Remove a Test User's Tag
Removes a tag that was set on a test user through Set a Test User’s Tag.
DELETE
/
users
/
{user_id}
/
tags
curl "https://api.thanxsandbox.com/users/${user_id}/tags?key=allergens" \
-X DELETE \
-H "Accept-Version: v4.0" \
-H "Accept: application/json" \
-H "X-ClientId: ${client_id}"
{}
Please review proper request headers here.
This endpoint is only available in SANDBOX. It returns
403 in production.Authenticate with your merchant app's
X-ClientId and Accept-Version: v4.0. No user token is needed. Do not send an Authorization: Bearer header: when a valid Bearer token is present, the API registers a device for that token's user as a side effect. See the Sandbox Testing guide.Parameters
Response
Returns200 OK with an empty JSON object ({}), including when the user had no tag with this key.
Errors
| Status | Code | Message | When |
|---|---|---|---|
400 | BAD_REQUEST | key is missing | No key was sent |
400 | BAD_REQUEST | key is a reserved tag name | The key is reserved |
400 | CLIENT_ID_HEADER_INVALID | X-ClientId header is invalid | The X-ClientId header is missing or doesn’t match an app |
403 | FORBIDDEN | You do not have access to this resource. | Called in production, or your X-ClientId isn’t tied to exactly one merchant |
404 | RESOURCE_NOT_FOUND | User not found | No active user with this user_id is a member of your merchant |
curl "https://api.thanxsandbox.com/users/${user_id}/tags?key=allergens" \
-X DELETE \
-H "Accept-Version: v4.0" \
-H "Accept: application/json" \
-H "X-ClientId: ${client_id}"
{}