Python
import os
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key=os.environ.get("SAMPLEHC_API_KEY"), # This is the default and can be omitted
)
response = client.v2.workflow_runs.resume_when_complete(
async_result_id="asyncResultId",
)
print(response.message){
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Workflow-run
Resume workflow after async task
Registers an asynchronous task’s result ID to resume a workflow run upon its completion. This endpoint requires an ExecuteStepRequestContext with workflowRunId and stepAddr.
POST
/
api
/
v2
/
workflow-runs
/
resume-when-complete
Python
import os
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key=os.environ.get("SAMPLEHC_API_KEY"), # This is the default and can be omitted
)
response = client.v2.workflow_runs.resume_when_complete(
async_result_id="asyncResultId",
)
print(response.message){
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Body
application/json
The unique identifier of the asynchronous result to monitor before resuming.
Queue priority for the resume request. Use 'interactive' to resume sooner for user-visible workflows. Defaults to 'background'.
Available options:
interactive, background Response
Request accepted, processing to resume workflow has been initiated.
A message indicating the request has been accepted for processing.