Skip to content

Commit

Permalink
fix(simint): add simulation run example (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
polomani authored Jan 17, 2025
1 parent 637a5da commit a912037
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/alpha/src/api/simulators/simulatorsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ export class SimulatorsAPI extends BaseResourceAPI<Simulator> {
return this.runDataApi.retrieve(ids);
};

/**
* [Run a simulation](Run a simulation <https://developer.cognite.com/api#tag/Simulation-Runs/operation/run_simulation_simulators_run_post)
*
* ```js
* const simulationRun = await client.simulators.runSimulation([{ "routineExternalId": "DWSIM-ShowerMixer" }]);
* ```
*/
public runSimulation = (items: SimulationRunCreate[]) => {
return this.runsApi.run(items);
};
Expand Down

0 comments on commit a912037

Please sign in to comment.