contactUpdate
Update a contact. The contactUpdate 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 ContactAttributes type
mutation contactUpdate ($id: ID, $code: String, $attributes: ContactAttributes!) {
contactUpdate (id: $id, code: $code, attributes: $attributes) {
contact {
accountId
code
createdAt
customFieldsData
description
email
entityId
firstName
fullName
hasCustomFields
id
lastName
linkedinUrl
mailingCity
mailingCountry
mailingState
mailingStreet
mailingZip
mobile
phone
portalAccess
salutation
title
updatedAt
}
errors
}
}
ArgumentsLink to Arguments section
{
"id": "456123",
"code": "",
"attributes": {
"code": "",
"firstName": "",
"lastName": "",
"email": "",
"salutation": "",
"title": "",
"phone": "",
"mobile": "",
"mailingStreet": "",
"mailingCity": "",
"mailingZip": "",
"mailingState": "",
"mailingCountry": "",
"portalAccess": true,
"description": "",
"accountId": "456123",
"accountCode": "",
"campaignCode": "",
"linkedinUrl": ""
}
}
| Name | Type | Description |
|---|---|---|
| id | ID | |
| code | String | |
| attributes | ContactAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| contact | Contact | |
| errors | String |