POST
/
v4
/
evaluation-datasets
/
{evaluation_dataset_id}
/
generation-jobs
/
{generation_job_id}
/
cancel
import SGPClient from 'sgp';

const client = new SGPClient({
  apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const response = await client.evaluationDatasets.generationJobs.cancel(
    'evaluation_dataset_id',
    'generation_job_id',
  );

  console.log(response);
}

main();
"<any>"

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Path Parameters

evaluation_dataset_id
string
required
generation_job_id
string
required

Response

200
application/json
Successful Response

The response is of type any.