duplicate_line
Copy a line and all its endpoints/targets/rules into a new line key — build v2 from v1. The copy is saved inactive and remains off the data plane; edit it, then activate_line when ready. Requires edit access.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional name for the copy (defaults to "<source name> (copy)"). | |
| lineKey | Yes | The source line key to copy. | |
| commitMode | No | Defaults to publish. Draft writes require draftRevision. | |
| newLineKey | Yes | New line key for the copy, e.g. "v2". | |
| draftRevision | No | Current line draft revision, required for draft writes. |