Skip to documentation
Workflow Developer API

Create Developer Workflow Draft

Create an editable draft from the workflow's currently active version.

POST/developer/v1/workflows/{definition_id}/draft

Authorizations

Authorization
stringheaderrequired

Send your GenHealth credential as Bearer <YOUR_API_KEY>. This endpoint requires workflow:write for the authenticated organization.

Headers

Accept
stringheader

Response media type. Use application/json for the current API.

Parameters

definition_idrequired
stringpath

Responses

201Successful Response
WorkflowVersionResponse
idstring
workflow_idstring
version_numberinteger | null
statusstring
nodesarray<WorkflowNodeSchema>
edgesarray<WorkflowEdgeSchema>
triggerobject<string, any> | null
configobject<string, any> | null
422Validation Error
HTTPValidationError
detailarray<ValidationError>