---
title: "Update asset by id"
method: PUT
path: "/assets/{id}"
tags: ["Asset Management"]
---

# Update asset by id

`PUT /assets/{id}`

Updates the asset with the given id.

## Request body

- Asset
  - `id` string, uuid, required
  - `user_id` string, uuid
  - `title` string, required
  - `creator` string
  - `subject` string
  - `description` string

## Response `200`

OK

- Asset
  - `id` string, uuid, required
  - `user_id` string, uuid
  - `title` string, required
  - `creator` string
  - `subject` string
  - `description` string

## Changes

- **2024-06-07** `5ea1c0d602b9` — 6 breaking, 6 info
  - added the pattern `^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$` to the request property `id`
  - added the pattern `^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$` to the request property `user_id`
  - added the pattern `^[A-Za-z0-9\s\-_,.;:()!@#$%&*+=?\/\\|~^'"\[\]{}áéíóúñ©€£¥]+$` to the request property `creator`
  - added the pattern `^[A-Za-z0-9\s\-_,.;:()!@#$%&*+=?\/\\|~^'"\[\]{}áéíóúñ©€£¥]+$` to the request property `description`
  - …8 more
- **2024-06-07** `3e9b4afe1aeb` — 5 breaking, 4 info
  - the request property `creator` became not nullable
  - the request property `description` became not nullable
  - the request property `subject` became not nullable
  - the request property `user_id` became not nullable
  - …5 more
- **2024-06-04** `578e8efc5755` — 6 breaking, 21 info
  - the response property `creator` became nullable for the status `200`
  - the response property `description` became nullable for the status `200`
  - the response property `subject` became nullable for the status `200`
  - the response property `user_id` became nullable for the status `200`
  - …23 more

[Change history](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api/changes/assets/:id/put.md)

---

[API](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api.md) · [All operations](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api/revisions/33cd508fee93?raw)
