Lead
Update Lead
Changed onUpdate a Lead record given the Lead identifier and Lead data.
put/leads/{lead_id}
Request
- Base URLhttps://api.wodify.com/v1
- URLhttps://api.wodify.com/v1/leads/{lead_id}
- Authnone declared. Required headers: x-api-key
Path parameters
lead_idinteger required
Unique Lead ID.
Headers
x-api-keystring required
A valid API key. If you don't have one, please request one through the Automations → Integrations page.
Request body
Example request
{
"lead_status_id": 1234567891234567,
"location_id": 1234567891234567,
"date_of_birth": "2014-12-31",
"lead_source_id": 1234567891234567,
"referred_by_user_id": 1234567891234567,
"lead_owner_id": 1234567891234567,
"custom_field_with_answers": [
{
"custom_field": {
"custom_field_id": 1234567891234567,
"lead_custom_field_id": 1234567891234567
},
"custom_field_multiple_choice_answers": [
{
"lead_custom_field_multiple_choice_answer_id": 1234567891234567
}
]
}
]
}Response
Updated Lead record.
Example response
{
"id": 1234567891234567,
"lead_status_id": 1234567891234567,
"location_id": 1234567891234567,
"date_of_birth": "2014-12-31",
"lead_group": {
"group_id": 1234567891234567,
"group_role_id": 1234567891234567,
"other_group_participants": [
{
"group_participant_lead_id": 1234567891234567,
"group_role_id": 1234567891234567
}
]
},
"created": {
"created_by_id": 1234567891234567,
"created_on_datetime": "2014-12-31T23:59:59.938Z"
},
"updated": {
"updated_by_id": 1234567891234567,
"updated_on_datetime": "2014-12-31T23:59:59.938Z"
},
"last_contact_datetime": "2014-12-31T23:59:59.938Z",
"status_history": [
{
"from_status_id": 1234567891234567,
"to_status_id": 1234567891234567,
"status_change_datetime": "2014-12-31T23:59:59.938Z"
}
],
"lead_source_id": 1234567891234567,
"referred_by_user_id": 1234567891234567,
"location_timezone_id": 1234567891234567,
"created_from_source_id": 1234567891234567,
"lead_owner_id": 1234567891234567,
"last_class_sign_in": "2014-12-31T23:59:59.938Z",
"last_booking_sign_in": "2014-12-31T23:59:59.938Z",
"next_class_reservation": "2014-12-31T23:59:59.938Z",
"next_appointment_booking": "2014-12-31T23:59:59.938Z",
"custom_fields": [
{
"custom_field_id": 1234567891234567,
"lead_custom_field_id": 1234567891234567,
"answers": [
{
"custom_field_multiple_choice_answer_id": 1234567891234567,
"lead_custom_field_multiple_choice_answer_id": 1234567891234567
}
]
}
]
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- 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