➡️ Asset Import - Example JSON

Our Asset Import API requires that products be uploaded via a JSON file. Here is an example file.

If you are associating an imported item with an asset in Threekit, you will have to specify the type. The following asset types are available: scene, model, material, texture, stage, item, composite, attribute, upload, vector, font, vfb, video, lut

Create Item

You can find our Asset Import API here.

[
  {
    "product": {
      "name": "Soprano Sofa",
      "description": "Moderation is the quintessence of elegance; etc...",
      "tags": ["Bed", "Corner"],
      "keywords": ["Soprano"],
      "metadata": [
        {
          "name": "Brand",
          "type": "String",
          "defaultValue": "Testing"
        },
        {
          "name": "SKU",
          "type": "String",
          "defaultValue": "3NSZPL-1,5NWP"
        },
        {
          "name": "Threehub Category",
          "type": "String",
          "defaultValue": "Furniture"
        },
        {
          "name": "Product Family",
          "type": "String",
          "defaultValue": "Another test"
        },
        {
          "name": "Collection",
          "type": "String",
          "defaultValue": "Soprano"
        },
        {
          "name": "Availability",
          "type": "String",
          "defaultValue": "Europe, Russia,Georgia"
        },
        {
          "name": "URL",
          "type": "String",
          "defaultValue": "https://threehome.threekit.com/lounge-chair/"
        },
        {
          "name": "Height (cm)",
          "type": "Number",
          "defaultValue": 120
        },
        {
          "name": "Width (cm)",
          "type": "Number",
          "defaultValue": 327
        }
      ],
        "asset": {
            "assetId": "d8d86b48-edd8-498e-856a-ff139853ee30",
            "configuration": {},
            "type": "model"
        }
    }
  }
]

Update Item

To update an item, you will also need to provide a query object in the file. For example:

[
  {
    "query": { "id": <uuid of item>},
    "product": {
      "id": "ab1e3131-3db0-408f-a483-3c39a726101d",
      "name": "Soprano2"
      }
  }
]

Did this page help you?