Execute multiple actions
client.computers.batch(stringid, ComputerBatchParams { actions } body, RequestOptionsoptions?): ComputerBatchResponse
POST/computers/{id}/batch
Execute a batch of actions in sequence, stopping on first error
Parameters
id: string
Returns
ComputerBatchResponse = Record<string, unknown>
Execute multiple actions
import Lightcone from '@tzafon/lightcone';
const client = new Lightcone({
apiKey: process.env['TZAFON_API_KEY'], // This is the default and can be omitted
});
const response = await client.computers.batch('id');
console.log(response);{
"foo": "bar"
}Returns Examples
{
"foo": "bar"
}