Skip to main content

updatePartner

Requires at least one of the permissions customers:customer:update or suppliers:supplier:update.

Updates a partner. The permission needed covers every role the partner will carry after the update, so an update cannot be used to take on the other family's record.

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:

mutation UpdatePartner($updatePartnerInput: UpdatePartnerInput!) {
updatePartner(updatePartnerInput: $updatePartnerInput) {
id
code
registrationNumber
name
displayName
legalName
addresses {
id
postalCode
contactName
type
createdAt
city
}
}
}

Variables:

{
"updatePartnerInput": {
"id": "id"
}
}

Response:

{
"data": {
"updatePartner": {
"id": "id",
"code": "string",
"registrationNumber": "string",
"name": "string",
"displayName": "string",
"legalName": "string",
"addresses": [
{
"id": "id",
"postalCode": "string",
"contactName": "string",
"type": "string",
"createdAt": "2025-01-15T00:00:00Z",
"city": "string"
}
]
}
}
}
updatePartner(
updatePartnerInput: UpdatePartnerInput!
): Partner!

Arguments​

updatePartner.updatePartnerInput ● UpdatePartnerInput! non-null input​

The ID of the partner and the fields to change.

Type​

Partner object​

A partner: the one master record for customers and vendors, with its roles, addresses, contacts and account details.