PUT
/
tags
curl https://api.thanxsandbox.com/tags \
  -X PUT \
  $AUTH_HEADERS
  -d '{
    "tag": {
      "key": "allergens",
      "merchant_id": "weroifs",
      "values": [
        "gluten",
        "soy",
        "dairy",
        "honey"
      ]
    }
  }'
{
  "tag": {
    "id": "werwerr",
    "user_id": "werofsdf",
    "merchant_id": "weroif",
    "key": "allergens",
    "values": ["gluten", "soy", "dairy", "honey"]
  }
}
Please review proper request headers here.

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. Currently, only string tags are supported.
curl https://api.thanxsandbox.com/tags \
  -X PUT \
  $AUTH_HEADERS
  -d '{
    "tag": {
      "key": "allergens",
      "merchant_id": "weroifs",
      "values": [
        "gluten",
        "soy",
        "dairy",
        "honey"
      ]
    }
  }'
{
  "tag": {
    "id": "werwerr",
    "user_id": "werofsdf",
    "merchant_id": "weroif",
    "key": "allergens",
    "values": ["gluten", "soy", "dairy", "honey"]
  }
}