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
- Base URLhttps://marketplace.appdirect.com/api
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
opportunityIdstring required
Opportunity ID
Request body
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.
Example response
{
"opportunityId": "498c62ea-ad14-48e6-96ce-5400c617444c"
}