---
title: "Upsert artifact"
method: POST
path: "/disk/{disk_id}/artifact"
tags: ["artifact"]
---

# Upsert artifact

`POST /disk/{disk_id}/artifact`

Upload a file and create or update an artifact record under a disk

## Path parameters

- `disk_id` string, uuid, required

## Response `201`

Created

- object
  - `code` integer
  - `data` ModelArtifact
    - `created_at` string
    - `disk_id` string
    - `filename` string
    - `meta` object
    - `path` string
    - `updated_at` string
  - `error` string
  - `msg` string

## Changes

- **2025-11-12** `a1c1bcb0e2ee` — 1 info
  - removed the non-success response with the status `413`

[Change history](https://skmtc.dev/memodb-io/apis/acontext-api/changes/disk/:disk_id/artifact/post.md)

---

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