---
title: "PATCH /api/internal/artifacts/{id}"
method: PATCH
path: "/api/internal/artifacts/{id}"
tags: ["Artifacts", "Internal"]
---

# PATCH /api/internal/artifacts/{id}

`PATCH /api/internal/artifacts/{id}`

## Path parameters

- `id` string, required

## Request body

- object
  - `title` string
  - `status` 'building' | 'live' | 'failed' | 'stopped'
  - `previewUrl` string, uri
  - `deployTarget` string
  - `linesOfCode` integer
  - `fileCount` integer
  - `durationMs` integer
  - `metadata` object

## Response `200`

Updated artifact

- object
  - `id` string, required
  - `botId` string, required
  - `sessionKey` string, nullable, required
  - `channelType` string, nullable, required
  - `channelId` string, nullable, required
  - `title` string, required
  - `artifactType` string, nullable, required
  - `source` string, nullable, required
  - `contentType` string, nullable, required
  - `status` string, required
  - `previewUrl` string, nullable, required
  - `deployTarget` string, nullable, required
  - `linesOfCode` number, nullable, required
  - `fileCount` number, nullable, required
  - `durationMs` number, nullable, required
  - `metadata` object, nullable, required
  - `createdAt` string, required
  - `updatedAt` string, required

## Other responses

- `404` — Artifact not found

---

[API](https://skmtc.net/nexu-io/apis/nexu-controller-api.md) · [All operations](https://skmtc.net/nexu-io/apis/nexu-controller-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nexu-io/nexu-controller-api/revisions/ee3237405da6/schema)
