Skip to main content

Create New Opportunity

Add a new opportunity to a campaign

HTTP Request

[POST] /api/v6/campaigns/{id}/opportunities

Body Parameters

ParameterTypeDefaultNullableRequireDescription
opportunity_namestringOpportunity name
opportunity_statusintegeryesOpportunity status
recipientintegeryesOpportunity manager
amountnumericEstimated revenue
actual_amountnumericActual revenue
est_finish_datetimestampEstimated completion time
probabilitynumericOpportunity probability
descriptionstringDescription
type_sourcestringOpportunity source
source_contentstringSource details
account_idintegeryesCustomer identifier
contact_idintegerCustomer contact identifier
account_namestringCustomer name
contact_namestringCustomer contact name
account_emailstringCustomer email
account_phonestringCustomer phone number

Example

HTTP Request

POST api/v6/campaigns/52/opportunity HTTP/1.1
Host: example.getflycrm.com
Content-Type: application/json
{
"account_id": 1,
"opportunity_name": "TEST OPPORTUNITY API",
}

Status

200 OK

Response

{
"message": "Successfully added",
"id": 4
}