I can’t seem to be able to “update” a model that I have uploaded to ThreeKit through the front end. I have 100’s of rules that I am needing to set up, and doing it manually takes roughly and hour or two per model depending on the complexity. I keep getting this error (the ‘Proxy in #’ always changes after every submission):
{
"status": 422,
"code": "product_data_invalid",
"message": "Path not in state: Proxy in a443b149-36e4-4b67-9b81-9d2d6392ad59,plugs,Proxy,0,asset"
}
Here is the Json data that I am trying to send, it works if I remove the assetId on the bottom, but if I do that it just creates a duplicate “model” that has all the attributes and rules needed, but no actual 3D model. Any help would be greatly appreciated!
curl --request POST \
--url 'https://admin-fts.threekit.com/api/products/import?orgId=ORG_ID' \
--header 'accept: application/json' \
--header 'authorization: Bearer TOKEN_ID' \
--header 'content-type: application/json' \
--data '
{
"assets": [
{
"product": {
"rules": [
{
"conditions": [
{
"comparator": "==",
"attributeId": "48a6aab6-1809-44ee-9c42-fbc1f4b5874f",
"value": "Ballet Pink Lacquer"
}
],
"actions": [
{
"type": "set-material",
"nodes": [
"410b5fd3-ba6a-4f99-8f05-c626bc8b35d9",
"99e6aa30-3c43-4429-89b9-54eb3adb3fee",
"d7744381-099b-437d-80f5-2f8f7e2f0f9b",
"e605b30e-5a58-46b9-b614-b1847d487a58",
"b7758820-c143-4233-b55f-76f48d74bbad",
"6ffe8780-ef13-4fea-98d8-ddb1143c9bdf",
"8f635d9a-648e-41e3-9b44-9fba14385641",
"acfc7b88-5269-4f77-b115-df788f26e5b2"
],
"metadataQuery": {},
"value": {
"assetId": "fb94eada-bba9-4584-a2e8-34dd1fdf09f5",
"type": "material"
},
"instance": false,
"name": "set-material"
}
],
"name": "Ballet Pink",
"disabled": false
},
{
"conditions": [
{
"comparator": "==",
"value": "Bellini Peach Lacquer",
"attributeId": "48a6aab6-1809-44ee-9c42-fbc1f4b5874f"
}
],
"actions": [
{
"type": "set-material",
"nodes": [
"410b5fd3-ba6a-4f99-8f05-c626bc8b35d9",
"99e6aa30-3c43-4429-89b9-54eb3adb3fee",
"d7744381-099b-437d-80f5-2f8f7e2f0f9b",
"e605b30e-5a58-46b9-b614-b1847d487a58",
"b7758820-c143-4233-b55f-76f48d74bbad",
"6ffe8780-ef13-4fea-98d8-ddb1143c9bdf",
"8f635d9a-648e-41e3-9b44-9fba14385641",
"acfc7b88-5269-4f77-b115-df788f26e5b2"
],
"metadataQuery": {},
"value": {
"assetId": "fb94eada-bba9-4584-a2e8-34dd1fdf09f5",
"configuration": "",
"type": "material"
},
"instance": false,
"name": "set-material"
}
],
"name": "BelliniPeach",
"disabled": false
}
],
"attributes": [
{
"type": "Global",
"name": "Global",
"id": "48a6aab6-1809-44ee-9c42-fbc1f4b5874f"
}
],
"name": "MirabellDiningTable",
"assetId": "fb94eada-bba9-4584-a2e8-34dd1fdf09f5",
"type": "model",
"parentFolderId": "e8377cca-a631-48da-9510-88e881f85b88"
}
}
]
}
'