# Create Job — Cloud Convert

> Creates a new job for one or more tasks. See the documentation

- Key: `cloud_convert-create-job`
- Type: Action (Write)
- Version: 0.0.1
- App: Cloud Convert (`cloud_convert`) — https://pipedream.com/apps/cloud-convert.md
- This page (HTML): https://pipedream.com/apps/cloud-convert/actions/create-job
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/cloud_convert/actions/create-job/create-job.mjs

## Description

Creates a new job for one or more tasks. [See the documentation](https://cloudconvert.com/api/v2/jobs#jobs-create)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `tasks` | `object` | Yes | An object containing named tasks that form the job workflow. You can name tasks however you want, but only alphanumeric characters, hyphens (-), and underscores (_) are allowed. Each task object must include: operation (string, required): The endpoint for creating the task (e.g., convert, import/url, import/s3, export/s3, etc.) input (string or array, optional): The name(s) of the input task(s). Use this to reference other tasks within the same job. Multiple task names can be provided as an array. ignore_error (boolean, optional): By default, the job fails if one task fails. Set to true to continue the job even if this specific task fails. Task-specific options (optional): Additional parameters that depend on the operation type. These are the same parameters used when creating the task via its direct endpoint. Example: { "import-my-file": { "operation": "import/url", "url": "https://example.com/document.pdf" }, "convert-my-file": { "operation": "convert", "input": "import-my-file", "output_format": "jpg", "pages": "1-3" }, "export-my-file": { "operation": "export/url", "input": ["convert-my-file"] } } See the tasks documentation |
| `tag` | `string` | No | An arbitrary string to identify the job. Does not have any effect and can be used to associate with your application |
| `webhookUrl` | `string` | No | Single-job webhook URL receiving job.finished or job.failed events |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "cloud_convert",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "cloud_convert-create-job",
  arguments: {
    tasks: "Tasks",
    tag: "Tag",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "cloud_convert-create-job",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    cloud_convert: { authProvisionId: "apn_xxxxxxx" },
    tasks: "Tasks",
    tag: "Tag",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "cloud_convert-create-job",
    "configured_props": {
      "cloud_convert": { "authProvisionId": "apn_xxxxxxx" },
      "tasks": "Tasks",
      "tag": "Tag"
    }
  }'
```

---

- App: https://pipedream.com/apps/cloud-convert.md · All apps: https://pipedream.com/apps
