curl https://api.thanxsandbox.com/purchases/wourhfiwer/tags \
-X PUT \
-H "Content-Type: application/json" \
-H "Accept-Version: v4.0" \
-H "Accept: application/json" \
-H "X-ClientId: ${client_id}"
-d '{
"tag": {
"key": "server_satisfaction",
"values": [
"10"
]
}
}'
{
"tag": {
"id": "werwerr",
"purchase_id": "wourhfiwer",
"key": "server_satisfaction",
"values": [
"10"
]
}
}
Purchases
Update Purchase Tags
This endpoint updates an attribute tag for the given purchase. The tag associated with the key in the request will be created or updated with the values passed in.
PUT
/
purchases
/
:id
/
tags
curl https://api.thanxsandbox.com/purchases/wourhfiwer/tags \
-X PUT \
-H "Content-Type: application/json" \
-H "Accept-Version: v4.0" \
-H "Accept: application/json" \
-H "X-ClientId: ${client_id}"
-d '{
"tag": {
"key": "server_satisfaction",
"values": [
"10"
]
}
}'
{
"tag": {
"id": "werwerr",
"purchase_id": "wourhfiwer",
"key": "server_satisfaction",
"values": [
"10"
]
}
}
Please review proper request headers here.
Parameters
string
required
Purchase ID
string
required
Tag key
array(string)
required
Array of attributes tags
Response
string
Tag ID
string
Purchase ID
string
Tag key
array(string)
Array of attribute tags
curl https://api.thanxsandbox.com/purchases/wourhfiwer/tags \
-X PUT \
-H "Content-Type: application/json" \
-H "Accept-Version: v4.0" \
-H "Accept: application/json" \
-H "X-ClientId: ${client_id}"
-d '{
"tag": {
"key": "server_satisfaction",
"values": [
"10"
]
}
}'
{
"tag": {
"id": "werwerr",
"purchase_id": "wourhfiwer",
"key": "server_satisfaction",
"values": [
"10"
]
}
}