Trade fairs & leads

Update a lead

Changes the status; sending company rewrites all form fields (fields you omit are cleared).

PATCH/api/v1/leads/{id}

Authorization

Authorizationheaderrequired
Bearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Module: Fair leadsScope: crm.write

Path parameters

idintegerrequired
Lead id.

Body application/json

statusstringoptional
Status.
ValuesYeniİletişime geçildiTeklif verildiAktarıldıVazgeçildi
company …stringoptional
Fields of the create endpoint.

Errors

HTTPerrorMeaning
403forbiddenYou may not see / edit this record.
404not_foundRecord not found.
Request
curl -X PATCH https://ornek.solk.app/api/v1/leads/11 \
  -H "Authorization: Bearer $SOLK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "İletişime geçildi"
}'
Response
{
  "lead": {
    "can_edit": true,
    "city": "Konya",
    "company": "Anadolu Gıda Ambalaj",
    "contact_name": "Murat Er",
    "created_at": "2026-10-02T20:07:01",
    "customer_id": null,
    "email": "",
    "fair": "Ambalaj Fuarı 2026 (örnek)",
    "fair_id": 1,
    "id": 11,
    "initials": "AG",
    "interest": "Sıcak",
    "line": "",
    "next_action": "Numune gönder",
    "next_date": "2026-10-07",
    "note": "",
    "opp_id": null,
    "opp_type": "",
    "owner": {
      "full_name": "Deniz Aksoy",
      "id": 1,
      "role": "admin",
      "role_label": "Yönetici",
      "username": "admin"
    },
    "phone": "+90 533 555 33 44",
    "potential_kg": null,
    "products": "",
    "products_text": "",
    "project_note": "",
    "rid": "00QpWFogpnPsXu7",
    "sector": "",
    "status": "İletişime geçildi",
    "status_eff": "İletişime geçildi",
    "supplier": "",
    "task_id": 25,
    "timing": "",
    "title": "Genel Müdür",
    "unit": "kg",
    "visitor_type": "Potansiyel müşteri",
    "wa": "905335553344",
    "website": ""
  },
  "ok": true
}

Example responses were captured from a v22 installation running sample data; lists are shortened to two items.