Leads_patch
PATCH
/api/leads/{id}
const url = 'https://met.cards/api/leads/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"displayName":"example","email":"[email protected]","phone":"example","company":"example","title":"example","fields":[{"id":"example","kind":"other","label":"example","value":"example"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://met.cards/api/leads/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "displayName": "example", "email": "[email protected]", "phone": "example", "company": "example", "title": "example", "fields": [ { "id": "example", "kind": "other", "label": "example", "value": "example" } ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
displayName
string
email
string format: email
phone
string
company
string
title
string
fields
Array<object>
object
id
string
kind
required
string
label
required
string
value
required
string
Responses
Section titled “Responses”Media typeapplication/json
object
Examplegenerated
{}