POST
/
{workspaceId}
/
projects
/
{projectName}
/
jobs
createJob
import { IntunedClient } from "@intuned/client";

const intunedClient = new IntunedClient({
  apiKey: "<YOUR_API_KEY_HERE>",
  workspaceId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
});

async function run() {
  const result = await intunedClient.project.jobs.create("my-project", {
    id: "my-sample-job",
    payload: [
      {
        apiName: "get-contracts",
        parameters: {
          "page": 1,
        },
      },
      {
        apiName: "get-contracts",
        parameters: {
          "page": 2,
        },
      },
    ],
    configuration: {
      runMode: "Order-Irrelevant",
      maxConcurrentRequests: 5,
    },
  });

  // Handle the result
  console.log(result);
}

run();
{
  "id": "my-sample-job",
  "message": "created"
}

Authorizations

x-api-key
string
header
required

API Key used to authenticate your requests. How to create one.

Path Parameters

workspaceId
string<uuid>
required

Your workspace ID. How to find it?

projectName
string
required

Your project name. It is the name you provide when creating a project.

Body

application/json

create job request

Create job input

Response

201
application/json

Successfully created job

The response is of type object.