Skip to main content

customerUpdateTeamMember

Requires a customer (portal or buyer app) session.

Update a teammate's role/order-limit/approver flag (CUSTOMER_ADMIN only). screen 16.

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 CustomerUpdateTeamMember($input: CustomerUpdateTeamMemberInput!) {
customerUpdateTeamMember(input: $input) {
title
firstName
lastName
status
approvesOrders
assignedAddressIds
}
}

Variables:

{
"input": {
"userId": "id"
}
}

Response:

{
"data": {
"customerUpdateTeamMember": {
"title": "string",
"firstName": "string",
"lastName": "string",
"status": "string",
"approvesOrders": true,
"assignedAddressIds": [
"id"
]
}
}
}
customerUpdateTeamMember(
input: CustomerUpdateTeamMemberInput!
): CustomerTeamMember!

Arguments​

customerUpdateTeamMember.input ● CustomerUpdateTeamMemberInput! non-null input​

The details of the customer update team member request.

Type​

CustomerTeamMember object​

One buyer-side team member (a CUSTOMER-userType User under this partner).