v1

latestOpenAPI 3.0.32026-07-13142734.3 KB
asset

Update Asset

Use this endpoint to update an asset

patch/assets/{assetId}

Path parameters

assetIdstring required

The id of the asset

Request body

Example request

{
  "data": {
    "name": "jacket-occassionwear-02",
    "modelUrl": "https://example.org/jacket-occassionwear-02.glb",
    "iconUrl": "https://example.org/jacket-occassionwear-02.png",
    "applications": [
      {
        "id": "6479be53386e0a8665161420",
        "organizationId": "6453d11c462434a35b4abe17",
        "isVisibleInEditor": true,
        "masculineOrder": 1,
        "feminineOrder": 2
      }
    ]
  }
}

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
      }
    ]
  }
}