Duplicate Job

Overview

Duplicates an existing job with configurable options

Category: Work Management

Use this action to duplicate an existing job with configurable options. The new job’s dates are offset by the specified number of days. The original job must have a region. The new job is created with status “Queued” and unlocked. Optionally copies allocations, products, tags, and tasks from the original.

Request

Parameter Type Required Description Example
jobId string Yes The ID of the job to duplicate 0014ccb7-73ad-40e1-9282-2c492a0f313a
offsetDays integer Yes Number of days to offset the new job’s dates 7
copyAllocations boolean Yes Whether to copy resource allocations true
copyProducts boolean Yes Whether to copy job products true
copyTags boolean Yes Whether to copy job tags true
copyTasks boolean Yes Whether to copy job tasks false

Response

This action’s output is available as $duplicateJob in JSONata expressions. See Response format for the standard result.data / result.errors structure and error handling patterns.

Field Type Description
result.data.originalJobId string The ID of the original job
result.data.newJobId string The ID of the newly created job

Example output:

{
  "originalJobId": "0014ccb7-73ad-40e1-9282-2c492a0f313a",
  "newJobId": "00148d32-10ef-4264-adfe-0ff3ece68d92"
}