v1

latestSwagger 2.02026-07-13137761.0 MB
Asset

Update/create an asset

This endpoint allows you to update a given asset of a given asset family. Learn more about the <a href="/documentation/update.html#patch-asset-attribute-values">Update behavior</a>. Note that if the asset does not already exist for the given asset family, it creates it. This endpoint is case sensitive on the asset family code.

patch/api/rest/v1/asset-families/{asset_family_code}/assets/{code}

Path parameters

asset_family_codestring required

Code of the asset family

codestring required

Code of the resource

Request body

codestring required

Code of the asset

asset_family_codestring

Code of the asset family

valuesobject

Asset attributes values, see the <a href='/concepts/asset-manager.html#focus-on-the-asset-values'>Focus on the asset values</a> section for more details.

createdstring dateTime

Date of creation

updatedstring dateTime

Date of the last update

Example request

{
  "code": "sku_54628_picture1",
  "values": {
    "media_preview": [
      {
        "locale": null,
        "channel": null,
        "data": "sku_54628_picture1.jpg"
      }
    ],
    "model_wears_size": [
      {
        "locale": null,
        "channel": null,
        "data": "s"
      }
    ],
    "photographer": [
      {
        "locale": null,
        "channel": null,
        "data": "ben_levy"
      }
    ],
    "main_colors": [
      {
        "locale": null,
        "channel": null,
        "data": [
          "red",
          "purple"
        ]
      }
    ],
    "end_of_use_date": [
      {
        "locale": null,
        "channel": null,
        "data": "02/03/2021"
      }
    ]
  },
  "created": "2021-05-31T09:23:34+00:00",
  "updated": "2021-05-31T09:23:34+00:00"
}

Response

Created