Skip to main content
PATCH
/
v1
/
artifacts
/
{artifactId}
Update artifact content (full replace OR line patches)
curl --request PATCH \
  --url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/artifacts/{artifactId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "Updated greeting message",
  "change_summary": "Updated greeting message"
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.prisme.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

User session JWT or instance API key (iak_*). Send as Authorization: Bearer <token>.

Path Parameters

artifactId
string
required
Maximum string length: 128

Body

application/json

Two mutation modes - exactly one of content (full replace, creates a new version) or patches (line-level operations, applied atomically) MUST be present.

content
string

Full replacement content (creates a new version).

patches
object[]

Line-level operations applied atomically.

change_summary
string
Maximum string length: 512
base_version
integer

Expected current version for optimistic concurrency.

Response

New version persisted.

Helper-defined update result - includes the new current_version, total_versions, and (for patches mode) the resolved diff/version metadata.