Hey everyone! Iยดm trying to access table row using databricks api. Using Insomnia or postman, to test and the error are the same:
{
"error_code": "ENDPOINT_NOT_FOUND",
"message": "Endpoint not found for /2.0/sql/statements/"
}
Below is my request:(for obvious reasons, I hid the codes)
curl --request POST \
--url https://YYYYYYYYY.databricks.com/api/2.0/sql/statements/ \
--header 'Authorization: Bearer WWWWWWWWWWW' \
--header 'Content-Type: application/json' \
--data '{
"warehouse_id": "XXXXXXXX",
"catalog": "hive_metastore",
"schema": "default",
"statement": "SELECT id FROM deals"
}'
Any ideias, how to fix that?