Update Opportunity
Changed onUpdate Opportunity
Request
- Base URLhttps://myworkspace.myclickfunnels.com/api/v2
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://accounts.myclickfunnels.com/oauth/authorizeToken URLhttps://accounts.myclickfunnels.com/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Request body
Example request
{
"sales_opportunity": {
"sales_opportunity": {
"name": "Example Opportunity",
"pipelines_stage_id": 123,
"primary_contact_id": 123,
"value": "100.0",
"closed_at": "2025-01-01T00:00:00.000Z",
"assignee_id": 42
}
}
}Response
OK
Example response
{
"id": 17,
"public_id": "eMKZhP",
"name": "Example Opportunity",
"workspace_id": 42000,
"pipeline_id": null,
"pipelines_stage_id": 42,
"primary_contact_id": 26,
"value": "100.0",
"sort_order": 0,
"closed_at": "2025-01-01T00:00:00.000Z",
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z",
"pipeline": {
"id": 3,
"public_id": "KIaXjp",
"name": "Example Pipeline"
},
"pipelines_stage": {
"id": 42,
"public_id": "rebCDY",
"name": "Example Stage"
},
"primary_contact": {
"id": 24359,
"public_id": "vQxYMj",
"workspace_id": 4,
"default_shipping_address_id": null,
"anonymous": 0,
"email_address": "jane.doe@example.com",
"first_name": "Jane",
"last_name": "Doe",
"phone_number": "+18005550199",
"time_zone": "Madrid",
"uuid": "80b7f903-76cd-4edf-94bf-fc34c13ee654",
"unsubscribed_at": null,
"last_notification_email_sent_at": null,
"email_suppression_reason": null,
"is_active": true,
"deleted_at": null,
"fb_url": null,
"twitter_url": null,
"instagram_url": null,
"linkedin_url": null,
"website_url": null,
"created_at": "2026-01-09T15:27:56.647Z",
"updated_at": "2026-01-09T15:28:08.075Z",
"tags": [],
"custom_attributes": {},
"visits": {
"first_visit": {
"uuid": "9f2e8a22-1b65-4414-95f3-5caf0bbd11da",
"utm_source": "google",
"utm_medium": "cpc",
"utm_campaign": "spring_sale",
"utm_term": "running shoes",
"utm_content": "ad_variant_a",
"ip": "192.168.1.1",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36",
"referrer": "https://www.google.com/search?q=example",
"referring_domain": "google.com",
"landing_page": "https://example.com/products/shoes",
"browser": "Chrome",
"os": "Mac OS X",
"device_type": "desktop",
"started_at": "2026-01-09T14:23:45.123Z",
"created_at": "2026-01-09T14:23:45.123Z",
"updated_at": "2026-01-09T14:23:45.123Z"
},
"last_visit": null,
"last_visit_with_utm": {
"uuid": "9f2e8a22-1b65-4414-95f3-5caf0bbd11da",
"utm_source": "google",
"utm_medium": "cpc",
"utm_campaign": "spring_sale",
"utm_term": "running shoes",
"utm_content": "ad_variant_a",
"ip": "192.168.1.1",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36",
"referrer": "https://www.google.com/search?q=example",
"referring_domain": "google.com",
"landing_page": "https://example.com/products/shoes",
"browser": "Chrome",
"os": "Mac OS X",
"device_type": "desktop",
"started_at": "2026-01-09T14:23:45.123Z",
"created_at": "2026-01-09T14:23:45.123Z",
"updated_at": "2026-01-09T14:23:45.123Z"
}
}
},
"assignee_id": null,
"notes": [
{
"id": 33,
"public_id": "TNibqR",
"content": "Example note",
"created_by_id": 37,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z"
},
{
"id": 34,
"public_id": "jrHtbW",
"content": "Example note",
"created_by_id": 38,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z"
}
]
}Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
removed from the
///response propertyallOflist for the response status - info
removed from the
///response propertyallOflist for the response status - info
removed from the
///response propertyallOflist for the response status - info
added
subschema #2to the///response propertyanyOflist for the response status - info
added
subschema #2to the///response propertyanyOflist for the response status - info
added
subschema #2to the///response propertyanyOflist for the response status
- info