Skip to content
POST /datastore/{id}/test/{method}

Runs one method of a datastore with the request body as its input, to check the datastore's config and credentials. The method runs for real: uploadObject, insertRows, upsert and the like write to your storage.

Methods by type: s3, google_cloud_storage, azure_blob_storage: listObjects, uploadObject. qdrant datastores can't be tested here (400). postgres: testConnection, insertRows, upsertRows, deleteRows, executeStatement. pinecone: testConnection, upsert, query, deleteVectors, upsertDocuments, searchDocuments, deleteDocuments. bigquery: testConnection, insertRows. snowflake: testConnection, insertRows, executeStatement. A datastore of the removed mongo_data_api type has none, and is refused with a 400.

Path Parameters

idstring · uuid
required
methodstring
required
Example: listObjects

Response Body

data
successboolean

Errors

StatusDescription
400The datastore was not found in your environments, the type has no test methods, method is not one of the type's, or the method failed.
truto datastores test '<id>' -o json
curl -X POST 'https://api.truto.one/datastore/{id}/test/{method}' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
const response = await fetch('https://api.truto.one/datastore/{id}/test/{method}', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.truto.one/datastore/{id}/test/{method}"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.post(url, headers=headers, params=params)
print(response.json())