Update a pathway draft

View as MarkdownOpen in Claude

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

idstringRequired
Stable identifier of the draft pathway.

Request

This endpoint expects an object.
expectedVersionIddoubleRequired>=1

Client’s current versionId for optimistic locking. A mismatch with the server-side row returns a conflict error and the client must refetch.

titlestringOptional
Updated pathway title.
descriptionstringOptional
Updated pathway description.
decisionTreemap from strings to anyOptional

Updated decision-tree structure. Treat as opaque JSON; the shape is internal.

Response

The updated draft acknowledgement.
dataobject
messagestring

Human-readable acknowledgement.