Skip to main content
POST
/
api
/
v2
/
async-results
/
sleep
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.async_results.sleep(
    delay=1,
)
print(response.async_result_id)
{
  "asyncResultId": "<string>"
}

Body

application/json
delay
number
required

The number of milliseconds to wait before completing the async result.

Required range: x > 0

Response

202 - application/json

Default Response

asyncResultId
string
required

The ID to track the asynchronous sleep operation.