POST
/
{workspaceId}
/
projects
/
{projectName}
/
queues
/
{queueId}
/
items
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.queues.items.append("my-project", "my-sample-queue", {
    apiName: "get-contracts",
    parameters: {
      "page": 1,
      "isLastPage": false,
    },
    retry: {
      maximumAttempts: 3,
    },
  });

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

run();
{
  "runId": "11111111-1111-1111-1111-111111111111",
  "status": "queued"
}

Authorizations

x-api-key
string
header
required

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

Path Parameters

workspaceId
string
required

Your workspace ID. How to find it?

projectName
string
required

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

queueId
string
required

Your queue ID. It is the ID of the queue you provided when creating it.

Body

application/json

queue item

An item to be appended once to the queue.

Response

201
application/json

Queue item appended

The response is of type object.