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:
- GraphQL
- cURL
mutation UpdateMyProfile($input: UpdateMyProfileInput!) {
updateMyProfile(input: $input) {
id
name
title
companyName
firstName
lastName
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation UpdateMyProfile($input: UpdateMyProfileInput!) {\n updateMyProfile(input: $input) {\n id\n name\n title\n companyName\n firstName\n lastName\n }\n}",
"variables": {
"input": {
"email": "string",
"name": "string"
}
}
}
EOF
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.