Opportunities
Revive an opportunity
Opens a new opportunity from a lost / cancelled one (product, quantity and line are copied and linked to the original).
Authorization
AuthorizationheaderrequiredBearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Module: OpportunitiesScope:
crm.writePath parameters
idintegerrequiredId of the closed opportunity.
Errors
| HTTP | error | Meaning |
|---|---|---|
403 | forbidden | You may not see / edit this record. |
404 | not_found | Record not found. |
Request
curl -X POST https://ornek.solk.app/api/v1/opportunities/38/revive \
-H "Authorization: Bearer $SOLK_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'const res = await fetch("https://ornek.solk.app/api/v1/opportunities/38/revive", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SOLK_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});
const data = await res.json();import os, requests
r = requests.post(
"https://ornek.solk.app/api/v1/opportunities/38/revive",
headers={"Authorization": f"Bearer {os.environ['SOLK_API_KEY']}"},
json={},
)
print(r.json())Response
{
"ok": true,
"opp": {
"bant": 0,
"bant_a": false,
"bant_b": false,
"bant_n": false,
"bant_t": false,
"base_currency": "EUR",
"can_edit": true,
"can_revive": false,
"close_category": "",
"close_date": "2027-03-31",
"close_reason": "",
"closed_at": null,
"competitor": "",
"cur_sym": "€",
"currency": "EUR",
"customer": "Işıltı Film A.Ş.",
"customer_city": "Konya",
"customer_id": 8,
"days_in_stage": 0,
"demos": [],
"detail_status": "",
"fc": "Pipeline",
"gate_ok": false,
"gate_problems": [
"BANT kriterleri 4/4 sağlanmalı (Budget · Authority · Need · Time)"
],
"guide": "BANT 4/4",
"health": {
"grade": "success",
"label": "sağlıklı",
"score": 85
},
"health_color": "g",
"health_manual": false,
"health_note": "",
"health_why": [
[
"−15"
]
],
"id": 54,
"initials": "IF",
"is_account": false,
"is_open": true,
"last_update": "2026-10-02",
"lifetime_left": 180,
"line": "",
"logs": [
{
"date": "2026-10-02T20:07:00",
"from": null,
"note": "Yeniden canlandırıldı (mobil) ← #38",
"to": "Qualify",
"user": "Deniz Aksoy"
}
],
"name": "Mevcut Müşteri — Ek Satış · 2026 (canlandırıldı)",
"next_stage": "Viable",
"next_step": "Karar verici / yetkili kişiyi belirle (Authority)",
"note": "",
"notes": [],
"offer_price": null,
"offers": [],
"orders": [],
"owner": {
"full_name": "Deniz Aksoy",
"id": 1,
"role": "admin",
"role_label": "Yönetici",
"username": "admin"
},
"payment_days": null,
"potential_kg": 12000.0,
"prob": 0.1,
"probability": null,
"product": "PU-SL 350 Yüksek Performans (retort)",
"product_id": 2,
"pu": "€/kg",
"rid": "006CSwEIJ0YiYkC",
"sla_days": 30,
"sla_left": 30,
"source": "",
"stage": "Qualify",
"stage_label": "Qualify",
"start_date": "2026-10-02",
"steps": [
{
"assignee": {
"full_name": "Deniz Aksoy",
"id": 1,
"role": "admin",
"role_label": "Yönetici",
"username": "admin"
},
"auto": false,
"done": false,
"due_date": null,
"id": 475,
"note": "",
"stage": "Qualify",
"state": "open",
"title": "Karar verici / yetkili kişiyi belirle (Authority)"
}
],
"tags": [],
"tasks": [],
"threads": [],
"threads_n": 0,
"trend": "",
"trend_label": "Otomatik",
"type": "Mevcut Müşteri — Ek Satış",
"unit": "kg",
"unit_code": "kg",
"value": 0,
"value_base": 0,
"value_short": "0",
"visits": [],
"weighted": 0.0
}
}Example responses were captured from a v22 installation running sample data; lists are shortened to two items.