Storefront GraphQL APIReferenceMutations
Update Profile
MUTATION
updateProfile(input: UpdateProfileInput!): StorefrontUser!Arguments
input*Returns
- updateProfile
_id*ID!name*String!email?StringphoneNumber?Stringavatar?shippingAddress?tenant*String!status*CustomerStatus!Value in
ACTIVEINACTIVESUSPENDEDlastLoginAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
emailVerifiedAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
createdAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
updatedAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
Example Request
mutation UpdateProfile($input: UpdateProfileInput!) { updateProfile(input: $input) { _id name email phoneNumber avatar { fileAssetId provider key external alt } shippingAddress { title addressLine area division district upazila postalCode } tenant status lastLoginAt emailVerifiedAt }}{ "input": { "name": "string", "phoneNumber": "string" }}{ "data": { "updateProfile": { "_id": "1", "name": "string", "email": "string", "phoneNumber": "string", "avatar": { "fileAssetId": "1", "provider": "CLOUDINARY", "key": "string", "external": "string", "alt": "string" }, "shippingAddress": [ { "title": "string", "addressLine": "string", "area": "string", "division": "string", "district": "string", "upazila": "string", "postalCode": "string" } ], "tenant": "string", "status": "ACTIVE", "lastLoginAt": "<DateTime>", "emailVerifiedAt": "<DateTime>" } }}