Update artifact content (full replace OR line patches)
Two mutation modes - exactly one of content (full replace,
creates a new version) or patches (line-level operations,
applied atomically) MUST be present. base_version opts into
optimistic concurrency control.
Authorizations
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
128Body
Two mutation modes - exactly one of content (full replace,
creates a new version) or patches (line-level operations,
applied atomically) MUST be present.
Response
New version persisted.
Helper-defined update result - includes the new
current_version, total_versions, and (for patches
mode) the resolved diff/version metadata.