Update a pathway draft
Updates an in-progress draft. Only the supplied fields change; everything else is preserved. Requires the client to send its current versionId in expectedVersionId for optimistic locking. A mismatch returns a conflict error and the client must refetch the draft before retrying. The decision tree is opaque JSON in this API; treat it as authored content the engine consumes.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
id
Stable identifier of the draft pathway.
Request
This endpoint expects an object.
expectedVersionId
Client’s current versionId for optimistic locking. A mismatch with the server-side row returns a conflict error and the client must refetch.
title
Updated pathway title.
description
Updated pathway description.
decisionTree
Updated decision-tree structure. Treat as opaque JSON; the shape is internal.
Response
The updated draft acknowledgement.
data
message
Human-readable acknowledgement.