leadUpdate
Update a lead. The leadUpdate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: standard:write
For a complete list of input attributes see the LeadAttributes type
mutation leadUpdate ($id: ID!, $attributes: LeadAttributes!) {
leadUpdate (id: $id, attributes: $attributes) {
errors
lead {
accountId
accountTypeId
city
company
companyOrFullName
converted
convertedAt
country
createdAt
customFieldsData
description
email
employees
entityId
firstName
fullName
groupId
hasCustomFields
id
industryId
lastName
leadSourceId
leadStatusId
linkedinUrl
mobile
ownerUserId
phone
revenue
state
street
title
updatedAt
website
zip
}
}
}
ArgumentsLink to Arguments section
{
"id": "456123",
"attributes": {
"firstName": "",
"lastName": "",
"title": "",
"phone": "",
"mobile": "",
"email": "",
"linkedinUrl": "",
"company": "",
"street": "",
"city": "",
"state": "",
"zip": "",
"country": "",
"website": "",
"leadSourceId": "456123",
"leadStatusId": "456123",
"ownerUserId": "456123",
"campaignCode": "",
"groupId": "456123",
"entityId": "456123",
"accountTypeId": "456123",
"industryId": "456123",
"revenue": 123,
"employees": 123,
"description": "",
"convertedAt": "2022-06-01T00:00:00Z",
"ipAddress": "",
"createdAt": "2022-06-01T00:00:00Z",
"updatedAt": "2022-06-01T00:00:00Z"
}
}
| Name | Type | Description |
|---|---|---|
| id | ID | |
| attributes | LeadAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| lead | Lead |