AppResellerOpportunities

Clone opportunity

Clone an existing opportunity

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

post/assistedSales/v1/opportunities/{opportunityId}/clone

Request

Path parameters

opportunityIdstring required

Opportunity ID

Request body

namestring required

The name of the opportunity

customerCompanyIdstring required

The company ID of the customer

customerIdstring required

The user ID of the customer

ownerCompanyIdstring required

The company ID of the sales agent

ownerIdstring required

The user ID of the sales agent

createdByCompanyIdstring

The user's company ID that's creating the opportunity

createdByIdstring

The user's ID that's creating the opportunity

Example request

{
  "name": "Opportunity name - COPY",
  "customerCompanyId": "498c62ea-ad14-48e6-96ce-5400c617444c",
  "customerId": "505f0a0c-57a7-4d9e-9fac-66bbf557ac4d",
  "ownerCompanyId": "6a62244e-aa2f-461b-8c7a-3a0e091be9d3",
  "ownerId": "d781ac09-b4fe-4d57-8ba2-4640fc5b7c49",
  "createdByCompanyId": "b7e0c48b-6d0d-45fc-9c8a-3fa3fd84d9f1",
  "createdById": "8f6b3d29-4169-4fb0-91ff-bad9b7a3d0d4"
}

Response

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.

opportunityIdstring

The ID of the cloned opportunity

Example response

{
  "opportunityId": "498c62ea-ad14-48e6-96ce-5400c617444c"
}

Changes