Tags
Update Tags
Tags
Update Tags
This endpoint updates an attribute tag for the given user. The tag associated with the key in the request will be created or updated with the values passed in.
PUT
/tags
Bearer*
curl --request PUT \
--url https://api.thanx.com/tags \
--header 'Authorization: Bearer <token>'
Parameters
merchant_id
string
Only return tags for this merchant
key
string
Tag key
values
array(string)
Array of attributes tags
Response
id
string
Tag ID
user_id
string
User ID
merchant_id
string
Merchant ID
key
string
Tag key
values
array(string)
Array of attribute tags
{
"tag": {
"id": "werwerr",
"user_id": "werofsdf",
"merchant_id": "weroif",
"key": "allergens",
"values": ["gluten", "soy", "dairy", "honey"]
}
}
curl --request PUT \
--url https://api.thanx.com/tags \
--header 'Authorization: Bearer <token>'
{
"tag": {
"id": "werwerr",
"user_id": "werofsdf",
"merchant_id": "weroif",
"key": "allergens",
"values": ["gluten", "soy", "dairy", "honey"]
}
}