Manually trigger a JobRun. Fails if the Job is paused.
TypeScript
import { IntunedClient } from "@intuned/client"; const intunedClient = new IntunedClient({ workspaceId: "123e4567-e89b-12d3-a456-426614174000", apiKey: process.env["INTUNED_API_KEY"] ?? "", }); async function run() { const result = await intunedClient.project.jobs.trigger("my-project", "my-sample-job"); console.log(result); } run();
{ "jobRunId": "<string>", "message": "<string>" }
API Key used to authenticate your requests. How to create one.
Your workspace ID. How to find it?
The name you assigned when creating the Project.
The ID you assigned when creating the Job.
Job triggered successfully.
The ID of the triggered JobRun.
A message indicating the result of the trigger action.