---
title: "Clone opportunity"
method: POST
path: "/assistedSales/v1/opportunities/{opportunityId}/clone"
tags: ["AppResellerOpportunities"]
---

# Clone opportunity

`POST /assistedSales/v1/opportunities/{opportunityId}/clone`

## Request

- Base URL: `https://marketplace.appdirect.com/api`
- URL: `https://marketplace.appdirect.com/api/assistedSales/v1/opportunities/{opportunityId}/clone`
- Auth: none declared
- TypeScript: <https://skmtc.dev/appdirect/apis/companies/docs/assistedSales/v1/opportunities/:opportunityId/clone/post.ts> (a function with typed inputs; its response is checked against the schema)

Clone an existing opportunity

Required: Accept-Language header with Locale format. For example: en-US

## Path parameters

- `opportunityId` string, required

## Request body

- OpportunityCloneRequest: The parameters to be used when cloning the opportunity
  - `name` string, required: The name of the opportunity
  - `customerCompanyId` string, required: The company ID of the customer
  - `customerId` string, required: The user ID of the customer
  - `ownerCompanyId` string, required: The company ID of the sales agent
  - `ownerId` string, required: The user ID of the sales agent
  - `createdByCompanyId` string: The user's company ID that's creating the opportunity
  - `createdById` string: The user's ID that's creating the opportunity

## Response `202`

The response includes the new opportunity ID in the Location header in the following path: /api/assistedSales/v1/opportunities/{opportunityId}. The path contained in the location header is used by the client to fetch the opportunity.

- OpportunityClone: The response text containing the cloned opportunity ID.
  - `opportunityId` string: The ID of the cloned opportunity

## Other responses

- `400`: Missing or invalid required parameter
- `401`: Unauthorized
- `403`: The user does not have access to the opportunity, or the user does not have permission to execute the action
- `404`: Either the opportunity ID is invalid, or the customer or owner cannot be found.

## Changes

- **2026-11-06** `1fc240f06971`: 11 breaking, 19 info
  - added the new required request property `customerCompanyId`
  - added the new required request property `customerId`
  - added the new required request property `name`
  - added the new required request property `ownerCompanyId`
  - …26 more

[Operation history](https://skmtc.dev/appdirect/apis/companies/changes/assistedSales/v1/opportunities/:opportunityId/clone/post.md)

---

[API](https://skmtc.dev/appdirect/apis/companies.md) - [All operations](https://skmtc.dev/appdirect/apis/companies/llms.txt) - [OpenAPI document](https://skmtc.dev/appdirect/apis/companies/revisions/1fc240f06971?raw)
