v1

latestOpenAPI 3.0.32026-07-13142734.3 KB
asset

Create Asset

Use this endpoint to create a new asset

post/assets

Request body

Example request

{
  "data": {
    "name": "New Asset",
    "modelUrl": "https://example.org/model.glb",
    "iconUrl": "https://example.org/icon.png",
    "organizationId": "62a58eb4df136d4df8ce0d74",
    "applications": [
      {
        "id": "6479be53386e0a8665161420",
        "organizationId": "62a58eb4df136d4df8ce0d74",
        "isVisibleInEditor": true
      }
    ]
  }
}

Response

A typical successful response

Example response

{
  "data": {
    "id": "145064511",
    "name": "jacket-occassionwear-02",
    "organizationId": "6453d11c462434a35b4abe17",
    "modelUrl": "https://example.org/jacket-occassionwear-02.glb",
    "iconUrl": "https://example.org/jacket-occassionwear-02.png",
    "hasApps": true,
    "createdAt": "2023-02-02T14:39:01.026Z",
    "updatedAt": "2023-02-02T14:39:08.656Z",
    "applications": [
      {
        "id": "6479be53386e0a8665161420",
        "organizationId": "6453d11c462434a35b4abe17",
        "isVisibleInEditor": true,
        "masculineOrder": 1,
        "feminineOrder": 2
      }
    ]
  }
}