You can call this operation to update the tags of a product.
Calling this operation overwrites the last updated tags.

API

POST ${API_PREFIX}/commodity/{id}/tag
Content-Type: application/json;charset=utf-8 

URL Path Param

Request Body

[
  {
    "keyId": "3FO4K4W14J1H",
    "tagId": "3FO4K4VTKTA3"
  },
  {
    "keyId": "3FO4K4W1490E",
    "tagId": "3FO4K4VTKJ90"
  }
]

Note: Setting the request body to an empty array deletes all existing tags of a product.

Response

{
  "c": "0",
  "m": ""
}

Did this answer your question?