updateContact
Requires a customer (portal or buyer app) session.
Edit a person on the buyer's account.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation UpdateContact($input: UpdateMobileContactInput!) {
updateContact(input: $input) {
id
name
title
firstName
lastName
department
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation UpdateContact($input: UpdateMobileContactInput!) {\n updateContact(input: $input) {\n id\n name\n title\n firstName\n lastName\n department\n }\n}",
"variables": {
"input": {
"id": "id"
}
}
}
EOF
Variables:
{
"input": {
"id": "id"
}
}
Response:
{
"data": {
"updateContact": {
"id": "id",
"name": "string",
"title": "string",
"firstName": "string",
"lastName": "string",
"department": "string"
}
}
}
updateContact(
input: UpdateMobileContactInput!
): MobileContact!
Arguments
updateContact.input ● UpdateMobileContactInput! non-null input
The fields of the mobile contact to change.
Type
MobileContact object
A person on the buyer's account (name + optional title/email/phone).