POST
/
api
/
v1
/
sql
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.v1.sql_execute(
    params=[{}],
    query="query",
)
print(response)
{
  "rows": [
    "<any>"
  ]
}

Body

application/json

Response

200
application/json

The result of the SQL query execution. On success, returns 'rows'. If the query had issues but was processed, may return an 'error' object within a 200 response.