---
title: "PATCH /api/databases/{database_pk}/assets/{id}/"
method: PATCH
path: "/api/databases/{database_pk}/assets/{id}/"
tags: ["databases"]
---

# PATCH /api/databases/{database_pk}/assets/{id}/

`PATCH /api/databases/{database_pk}/assets/{id}/`

Update an existing database asset, for example to mark it as uploaded after the file has been stored.

## Path parameters

- `database_pk` string, required
- `id` string, required

## Request body

- Asset
  - `id` string, uuid
  - `download_url` string, uri
  - `filename` string — The original filename. Note this is different than the cloud storage filename.
  - `is_uploaded` boolean — True if the file is uploaded to cloud storage
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Response `200`

---

[API](https://skmtc.dev/pixiebrix/apis/pixiebrix-api.md) · [All operations](https://skmtc.dev/pixiebrix/apis/pixiebrix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pixiebrix/pixiebrix-api/revisions/941ab9eb01d6/schema)
