ObertObert
Leads

Update Lead Endpoint

Update a lead's approval status.

PATCH
/api/leads/{lead_id}
AuthorizationBearer <token>

In: header

Path Parameters

lead_idstring

Header Parameters

x-tenant-id?string|null
approval_statusstring

New approval status for the lead

Value in"approved" | "pending_approval" | "rejected" | "filtered"

Response Body

application/json

application/json

curl -X PATCH "https://api.obert.io/api/leads/string" \  -H "Content-Type: application/json" \  -d '{    "approval_status": "approved"  }'
{
  "lead_id": "string",
  "approval_status": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}