Skip to main content

updateMyProfile

Requires a customer (portal or buyer app) session.

Update the buyer's own profile (name, email, company name, business type). Changing the email requires a prior verifyEmailChangeOtp for that address.

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 UpdateMyProfile($input: UpdateMyProfileInput!) {
updateMyProfile(input: $input) {
id
name
title
companyName
firstName
lastName
}
}

Variables:

{
"input": {
"email": "string",
"name": "string"
}
}

Response:

{
"data": {
"updateMyProfile": {
"id": "id",
"name": "string",
"title": "string",
"companyName": "string",
"firstName": "string",
"lastName": "string"
}
}
}
updateMyProfile(
input: UpdateMyProfileInput!
): MobileBuyerProfile!

Arguments​

updateMyProfile.input ● UpdateMyProfileInput! non-null input​

The fields of the my profile to change.

Type​

MobileBuyerProfile object​

Authenticated buyer profile surface. v1 derives values from the JWT and Redis-backed addresses; promote to a Prisma-backed read model later.