---
updatedAt: 2026-06-19T16:07:00.000Z
---

# Update product (TikTok)

Update a item type product.  
**The productId must be exist.  
For locationId can be get using getProduct resource.**

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "TikTok"
  },
  "servers": [
    {
      "url": "https://api.ecartapi.com/api/v2"
    }
  ],
  "paths": {
    "/products/{productId}": {
      "put": {
        "summary": "Update product (TikTok)",
        "description": "Update a item type product.  \n**The productId must be exist.  \nFor locationId can be get using getProduct resource.**",
        "operationId": "update_product_tiktok",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "product": {
                      "type": "object"
                    }
                  }
                },
                "examples": {
                  "OK": {
                    "summary": "OK",
                    "value": {
                      "success": true,
                      "product": {
                        "id": "1729409601337789537",
                        "productUserId": null,
                        "sku": null,
                        "subName": null,
                        "upc": null,
                        "gtin": null,
                        "currency": null,
                        "quantity": null,
                        "price": null,
                        "cost": null,
                        "discount": null,
                        "dimensions": {
                          "width": null,
                          "height": null,
                          "length": null,
                          "weight": null
                        },
                        "units": {
                          "width": null,
                          "height": null,
                          "length": null,
                          "weight": null
                        },
                        "category": {
                          "id": null,
                          "name": null,
                          "all": []
                        },
                        "tags": [],
                        "status": {
                          "id": null,
                          "visibility": "false",
                          "active": "false",
                          "status": null,
                          "ecartapiId": "2",
                          "ecartapi": "inactive",
                          "hasOptions": null,
                          "inStock": null
                        },
                        "variants": [
                          {
                            "id": "1729410729891695713",
                            "productId": null,
                            "productUserId": null,
                            "name": null,
                            "price": null,
                            "currency": null,
                            "sku": null,
                            "fulfillmentService": null,
                            "option1": null,
                            "option2": null,
                            "option3": null,
                            "dimensions": {
                              "width": null,
                              "height": null,
                              "length": null,
                              "weight": null
                            },
                            "units": {
                              "width": null,
                              "height": null,
                              "length": null,
                              "weight": null
                            },
                            "inventory": {
                              "itemId": null,
                              "quantity": null
                            },
                            "status": {
                              "active": null
                            },
                            "requireShipping": null,
                            "bundled": null,
                            "countryCodeOrigin": null,
                            "provinceCodeOrigin": null,
                            "harmonizedSystemCode": null,
                            "countryHarmonizedSystemCode": null,
                            "imageId": null,
                            "imageUrl": null,
                            "dates": {
                              "createdAt": null,
                              "updatedAt": null
                            },
                            "ecartapiUrl": "http://localhost:3000/api/v2/products/null/variants/1729410729891695713"
                          }
                        ],
                        "options": [],
                        "associatedItems": [],
                        "logistic": {
                          "me1Suported": null,
                          "mode": null,
                          "type": null,
                          "free": "false",
                          "direction": null,
                          "dimensions": null,
                          "rates": []
                        },
                        "images": [],
                        "imageUrl": null,
                        "condition": null,
                        "link": null,
                        "dates": {
                          "createdAt": null,
                          "updatedAt": null
                        },
                        "vendor": null,
                        "sellOutStock": null,
                        "locations": [],
                        "internationalShipment": []
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "productId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the product."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "product": {
                    "type": "object",
                    "properties": {
                      "categoryId": {
                        "type": "string",
                        "example": "602097"
                      },
                      "name": {
                        "type": "string",
                        "example": "iPhone color black 128 gb from apple brand"
                      },
                      "price": {
                        "type": "string",
                        "example": "1100"
                      },
                      "quantity": {
                        "type": "string",
                        "example": "100"
                      },
                      "locationId": {
                        "type": "string",
                        "example": "7371382934206777120",
                        "description": "Get from getProduct resource"
                      },
                      "currency": {
                        "type": "string",
                        "example": "GBP"
                      },
                      "dimensions": {
                        "type": "object",
                        "properties": {
                          "weight": {
                            "type": "string",
                            "example": "0.600"
                          }
                        }
                      },
                      "units": {
                        "type": "object",
                        "properties": {
                          "weight": {
                            "type": "string",
                            "example": "KG"
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "New Example": {
                  "summary": "New Example",
                  "value": {
                    "product": {
                      "categoryId": "602097",
                      "name": "iPhone color black 128 gb from apple brand",
                      "price": "1100",
                      "quantity": "100",
                      "locationId": "7371382934206777120",
                      "currency": "GBP",
                      "dimensions": {
                        "weight": "0.600"
                      },
                      "units": {
                        "weight": "KG"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Authorization": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "Used to authenticate API requests after completing the store authorization or integration process. The access_token is generated once the e-commerce store grants access and must be included in every request header to validate the authorized connection."
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "security": [
    {
      "Authorization": []
    }
  ]
}
```