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:
- GraphQL
- cURL
mutation CustomerUpdateTeamMember($input: CustomerUpdateTeamMemberInput!) {
customerUpdateTeamMember(input: $input) {
title
firstName
lastName
status
approvesOrders
assignedAddressIds
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation CustomerUpdateTeamMember($input: CustomerUpdateTeamMemberInput!) {\n customerUpdateTeamMember(input: $input) {\n title\n firstName\n lastName\n status\n approvesOrders\n assignedAddressIds\n }\n}",
"variables": {
"input": {
"userId": "id"
}
}
}
EOF
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).