Skip to main content
PUT
/
{workspaceId}
/
projects
/
{projectName}
/
jobs
/
{jobId}
updateJob
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.update("my-project", "my-sample-job", {
    payload: [
      {
        parameters: {
          "param1": "value1",
          "param2": 42,
          "param3": true,
        },
        apiName: "my-awesome-api",
      },
    ],
    configuration: {
      retry: {},
    },
  });

  console.log(result);
}

run();
{
  "id": "<string>",
  "message": "updated job successfully"
}

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.

jobId
string
required

Your job ID. It is the ID of the job you provide when creating it.

Body

application/json

Job update input schema

Input schema for updating an existing job

payload
object[]
required

Array of API calls to be executed

configuration
object
required

Job configuration settings

schedule
object

Schedule configurations for the job. If set, the job will periodically run according to this configuration. The configurations are used to calculate the closest next run time.

sink
Webhook Sink Configuration · object

Optional sink configuration for the job. Can be a webhook or S3 Compatible sink.

proxy
string | null

Proxy configuration for the job

Example:

"http://username:[email protected]:8080"

auth_session
object

Response

Job updated successfully.

id
string
required

The ID of the updated job.

message
enum<string>
required
Available options:
updated job successfully