Create New Opportunity
Add a new opportunity to a campaign
HTTP Request
[POST] /api/v6/campaigns/{id}/opportunities
Body Parameters
Parameter | Type | Default | Nullable | Require | Description |
---|---|---|---|---|---|
opportunity_name | string | Opportunity name | |||
opportunity_status | integer | yes | Opportunity status | ||
recipient | integer | yes | Opportunity manager | ||
amount | numeric | Estimated revenue | |||
actual_amount | numeric | Actual revenue | |||
est_finish_date | timestamp | Estimated completion time | |||
probability | numeric | Opportunity probability | |||
description | string | Description | |||
type_source | string | Opportunity source | |||
source_content | string | Source details | |||
account_id | integer | yes | Customer identifier | ||
contact_id | integer | Customer contact identifier | |||
account_name | string | Customer name | |||
contact_name | string | Customer contact name | |||
account_email | string | Customer email | |||
account_phone | string | Customer 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
}