Skip to main content
PUT
https://genui.sh
/
api
/
artifacts
/
{id}
Update Artifact
curl --request PUT \
  --url https://genui.sh/api/artifacts/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "description": "<string>",
  "content": {},
  "metadata": {},
  "expiresIn": "<string>"
}
'
{
  "id": "art_abc123",
  "template": "markdown",
  "title": "Updated Title",
  "status": "active",
  "createdAt": "2024-01-15T12:00:00Z",
  "updatedAt": "2024-01-16T14:30:00Z"
}
Update an existing artifact’s title, description, content, or metadata.

Request

id
string
required
The artifact ID to update
title
string
New display title
description
string
New description
content
object
Updated template-specific content object
metadata
object
Updated metadata (merged with existing)
expiresIn
string
New expiration duration from now
You cannot change the template type of an existing artifact.

Response

Returns the updated artifact object.
{
  "id": "art_abc123",
  "template": "markdown",
  "title": "Updated Title",
  "status": "active",
  "createdAt": "2024-01-15T12:00:00Z",
  "updatedAt": "2024-01-16T14:30:00Z"
}

Code Examples

curl -X PUT https://genui.sh/api/artifacts/art_abc123 \
  -H "Authorization: Bearer $GENUI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Updated Title",
    "content": {"text": "# Updated Content\n\nThis has been modified."}
  }'