POST
/
api
/
v2
/
async-results
/
sleep
import SampleHealthcare from 'samplehc';

const client = new SampleHealthcare({
  apiKey: process.env['SAMPLEHC_API_KEY'], // This is the default and can be omitted
});

const response = await client.v2.asyncResults.sleep({ delay: 1 });

console.log(response.asyncResultId);
{
  "asyncResultId": "<string>"
}

Body

application/json

Response

202 - application/json

Default Response

The response is of type object.