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

Scope required: tags.write

This endpoint updates a tag for the given user. The tag associated with the key in the request will be created or updated with the values passed in.

Parameters

merchant_id
string

Merchant ID

user_id
string

User ID

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, on string tags are supported. Support for additional data types will be added in 1H 2024.