Skip to main content

SAMind Bulk

POST 

/calculate/bulk

Turns SRP well tests and intake conditions into optimised operating recipes for multiple wells in a single request. Each item is calculated independently — a failure on one well does not affect the others.

Request

Responses

Results in the same order as the request items. Each item contains either a result or an error detail.

import { SAMindClient } from "@petrominds/sa-mind";

const client = new SAMindClient({ apiKey: "YOUR_API_KEY" });

const result = await client.sa.calculateBulk({
items: [
// TODO: populate request parameters
],
});

result.forEach((item, i) => {
if (item.result) {
console.log(`[${i}] success`);
} else {
console.log(`[${i}] error: ${item.error?.errorCode}`);
}
});