Skip to main content
PATCH
Update artifact content or restore a version

Authorizations

Authorization
string
header
required

User-bound credential carrying an identity: either a session JWT or a user access token (at:*) generated from the user settings UI. Send as Authorization: Bearer <token>. Org API keys (iak_*) are not accepted here - they carry no user identity. Use the x-prismeai-api-key header instead (see OrgApiKeyAuth).

Path Parameters

artifactId
string
required
Maximum string length: 128

Body

application/json

Send content (full replace) or restore_version (fork a historical version into a new current version).

content
string

Full replacement content (creates a new version).

restore_version
number

Historical version number to re-commit as the new current version.

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 and total_versions.