api/leads/:id
Header
| Field | Type | Description | 
|---|---|---|
| Authorization | String | 
 Basic Access Authentication token.  | 
Parameter
| Field | Type | Description | 
|---|---|---|
| source | String | 
 Mandatory Lead source.  | 
| status | String | 
 Mandatory Lead Status.  | 
| name | String | 
 Mandatory Lead Name.  | 
| assignedoptional | String | 
 Optional Lead assigned.  | 
| client_idoptional | String | 
 Optional Lead From Customer.  | 
| tagsoptional | String | 
 Optional Lead tags.  | 
| contactoptional | String | 
 Optional Lead contact.  | 
| titleoptional | String | 
 Optional Position.  | 
| emailoptional | String | 
 Optional Lead Email Address.  | 
| websiteoptional | String | 
 Optional Lead Website.  | 
| phonenumberoptional | String | 
 Optional Lead Phone.  | 
| companyoptional | String | 
 Optional Lead company.  | 
| addressoptional | String | 
 Optional Lead address.  | 
| cityoptional | String | 
 Optional Lead City.  | 
| stateoptional | String | 
 Optional Lead state.  | 
| countryoptional | String | 
 Optional Lead Country.  | 
| default_languageoptional | String | 
 Optional Lead Default Language.  | 
| descriptionoptional | String | 
 Optional Lead description.  | 
| lastcontactoptional | String | 
 Optional Lead Last Contact.  | 
| is_publicoptional | String | 
 Optional Lead google sheet id.  | 
{
    "name": "Lead name",
    "contact": "contact",
    "title": "title",
    "company": "gaptrade",
    "description": "description",
    "tags": "",
    "city": "London",
    "state": "London",
    "address": "1a The Alexander Suite Silk Point",
    "assigned": "5",
    "source": "4",
    "email": "AA@gmail.com",
    "website": "www.gaptrade.io",
    "phonenumber": "123456789",
    "is_public": "on",
    "default_language": "english",
    "client_id": "3",
    "lastcontact": "25/07/2019 08:38:04"
}
Success 200
| Field | Type | Description | 
|---|---|---|
| status | Boolean | 
 Request status.  | 
| message | String | 
 Lead Update Successful.  | 
HTTP/1.1 200 OK
{
  "status": true,
  "message": "Lead Update Successful."
}
Error 4xx
| Name | Type | Description | 
|---|---|---|
| status | Boolean | 
 Request status.  | 
| message | String | 
 Lead Update Fail.  | 
HTTP/1.1 404 Not Found
{
  "status": false,
  "message": "Lead Update Fail."
}