{"section":"known-issues","requestedLocale":"en","requestedSlug":"kit-weight-can-be-overritten-by-apiwebservice","locale":"en","slug":"kit-weight-can-be-overritten-by-apiwebservice","path":"docs/en/known-issues/Catalog/kit-weight-can-be-overritten-by-apiwebservice.md","branch":"main","content":"## Summary\n\n\nCurrently, it is set in our catalog business rules that a KIT SKU's freight weight should be defined by the sum of its components - https://help.vtex.com/en/tutorial/cadastrando-kit--tutorials_215\n\n ![](https://raw.githubusercontent.com/vtexdocs/known-issues/refs/heads/main/docs/en/known-issues/Catalog/kit-weight-can-be-overritten-by-apiwebservice_1.png)\n\nHowever, it is currently possible to overwrite this weight calculation via API and or webservice where the value set is the one directly sent in the payload, not considering any component weightage.\n\n\n## Simulation\n\n\n1) Create an SKU KIT and components for it;\n\nFor example, the component's original weight can be 100g and the kit is composed of 6 items of this unique component. Consequently, its final weight should be 600g:\n\nEven the input box is set as a readonly.\n\n2) However, if in the SKUKIT structure, that is, the form that composes the kit's information, I fetch this data via API or webservice, such as:\n\n`curl --location --request GET 'https://merch.vtexcommercestable.com.br/api/catalog/pvt/stockkeepingunit/310118469' \\`\n`--header 'Content-Type: application/json' \\`\n`--header 'Accept: application/json' \\`\n`--header 'VtexIdclientAutCookie: ' \\`\n`--header 'Cookie: janus_sid=361dacc3-e2b8-4ee1-8f5b-b2cf0529f39a' \\`\n`--data-raw ''`\n\n3) And then directly update the related JSON property, sending it via PUT Method in the payload:\n\n```json\n`curl --location --request PUT 'https://catalog.vtexcommercestable.com.br/api/catalog/pvt/stockkeepingunit/?an=' \\`\n`--header 'Content-Type: application/json' \\`\n`--header 'Accept: application/json' \\`\n`--header 'VtexIdclientAutCookie: ' \\`\n`--header 'Cookie: janus_sid=eee0b24c-f31b-4359-9bbd-5745b5b38d39' \\`\n`--data-raw '\\{`\n`    \"Id\": 310118469,`\n`    \"ProductId\": 35,`\n`    \"IsActive\": true,`\n`    \"ActivateIfPossible\": true,`\n`    \"Name\": \"Kit com 6\",`\n`    \"RefId\": \"000806\",`\n`    \"PackagedHeight\": 1.0000,`\n`    \"PackagedLength\": 3.0000,`\n`    \"PackagedWidth\": 2.0000,`\n`    \"PackagedWeightKg\": 0.300,`\n`    \"Height\": null,`\n`    \"Length\": null,`\n`    \"Width\": null,`\n`    \"WeightKg\": null,`\n`    \"CubicWeight\": 0.0013,`\n`    \"IsKit\": true,`\n`    \"CreationDate\": \"2021-09-14T09:20:00\",`\n`    \"RewardValue\": null,`\n`    \"EstimatedDateArrival\": null,`\n`    \"ManufacturerCode\": \"\",`\n`    \"CommercialConditionId\": 1,`\n`    \"MeasurementUnit\": \"un\",`\n`    \"UnitMultiplier\": 1.0000,`\n`    \"ModalType\": null,`\n`    \"KitItensSellApart\": false,`\n`    \"Videos\": []`\n`\\}'`\n```\n\nThe previous value that took into account the component's weight * amount is completely overwritten, consequently generating possible inconsistencies in the freight calculations.\n\n\n## Workaround\n\n\nUpdating the component weights only and letting the application calculate the final kit weight by itself."}