---
title: "Update/create a PAM asset"
method: PATCH
path: "/api/rest/v1/assets/{code}"
tags: ["PAM asset"]
---

# Update/create a PAM asset

`PATCH /api/rest/v1/assets/{code}`

This endpoint allows you to update a given PAM asset. Know more about <a href="/documentation/update.html#update-behavior">Update behavior</a>. Note that if no asset exists for the given code, it creates it.

## Path parameters

- `code` string, required

## Request body

- object
  - `code` string, required — PAM asset code
  - `categories` string[] — Codes of the PAM asset categories in which the asset is classified
  - `description` string — Description of the PAM asset
  - `localizable` boolean — Whether the asset is localized or not, meaning if you want to have different reference files for each of your locale
  - `tags` string[] — Tags of the PAM asset
  - `end_of_use` string, dateTime — Date on which the PAM asset expire
  - `variation_files` object[] — Variations of the PAM asset
    - `_link` object — Links to get and download the variation file
      - `self` object
        - `href` string — URI of the variation entity
      - `download` object
        - `href` string — URI to download the variation file
    - `locale` string — Locale code of the variation
    - `scope` string — Channel code of the variation
    - `code` string — Code of the variation
  - `reference_files` object[] — Reference files of the PAM asset
    - `_link` object — Links to get and download the reference file
      - `self` object
        - `href` string — URI of the reference file entity
      - `download` object
        - `href` string — URI to download the reference file
    - `locale` string — Locale code of the reference file
    - `code` string — Code of the reference file

## Response `201`

Created

## Other responses

- `204` — No content to return
- `400` — Bad request
- `401` — Authentication required
- `403` — Access forbidden
- `415` — Unsupported Media type
- `422` — Unprocessable entity

---

[API](https://skmtc.net/akeneo/apis/akeneo-pim-rest-api.md) · [All operations](https://skmtc.net/akeneo/apis/akeneo-pim-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeneo/akeneo-pim-rest-api/versions/d8bda9b93b59/schema)
