mutation

updateProfile

Allow users to modify and update their profile details.
Arguments
editProfileRequestSchemaInput
EditProfileRequestSchemaInput
Describes the request structure to edit the profile details.
platform
String
ID of the application.
Response
country_code
String
The country specific prefix for the phone number.
email
String
Email id of user.
message
String
Information about the operation's result.
mobile
String
The user's mobile number without the country code.
register_token
String
Unique registration token for user.
request_id
String
A random uuid string used to track the request.
resend_email_token
String
Unique token to identify the request for OTP verification in case of unverified email.
resend_timer
Int
Time in seconds before an request can be resent.
resend_token
String
A token used to authorize the resending of request.
success
Boolean
Whether the operation was successful.
Describes the user details structure.
user_exists
Boolean
If user is registered or not.
verify_email_link
Boolean
Whether to send a link to verify the registered email id of the user.
verify_email_otp
Boolean
Whether to send a OTP to verify the registered email id of the user.
verify_mobile_otp
Boolean
Whether to send a OTP to verify the registered phone of the user.
Mutation
1mutation updateProfile(
2 $editProfileRequestSchemaInput: EditProfileRequestSchemaInput
3 $platform: String
4) {
5 updateProfile(
6 editProfileRequestSchemaInput: $editProfileRequestSchemaInput
7 platform: $platform
8 ) {
9 country_code
10 email
11 message
12 mobile
13 register_token
14 request_id
15 resend_email_token
16 resend_timer
17 resend_token
18 success
19 user {
20 id
21 account_type
22 active
23 application_id
24 created_at
25 dob
26 first_name
27 gender
28 last_name
29 meta
30 profile_pic_url
31 updated_at
32 user_id
33 username
34 external_id
35 rr_id
36 }
37 user_exists
38 verify_email_link
39 verify_email_otp
40 verify_mobile_otp
41 }
42}
Try it
Input Variables
1{
2 "editProfileRequestSchemaInput": {
3 "android_hash": "android_hash",
4 "country_code": "country_code",
5 "dob": "dob",
6 "email": "test-email@yourcompany.com",
7 "first_name": "first_name",
8 "gender": "gender",
9 "last_name": "last_name",
10 "mobile": {
11 "country_code": "country_code",
12 "phone": "1+ 418-323-4236"
13 },
14 "profile_pic_url": "profile_pic_url",
15 "register_token": "register_token",
16 "sender": "sender"
17 },
18 "platform": "platform"
19}
Response
1{
2 "updateProfile": {
3 "country_code": "country_code",
4 "email": "test-email@yourcompany.com",
5 "message": "message",
6 "mobile": "mobile",
7 "register_token": "register_token",
8 "request_id": "request_id",
9 "resend_email_token": "resend_email_token",
10 "resend_timer": 42,
11 "resend_token": "resend_token",
12 "success": true,
13 "user": {
14 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
15 "account_type": "account_type",
16 "active": true,
17 "application_id": "application_id",
18 "created_at": "created_at",
19 "dob": "dob",
20 "first_name": "first_name",
21 "gender": "gender",
22 "last_name": "last_name",
23 "meta": {},
24 "profile_pic_url": "profile_pic_url",
25 "updated_at": "updated_at",
26 "user_id": "user_id",
27 "username": "username",
28 "external_id": "external_id",
29 "rr_id": "rr_id"
30 },
31 "user_exists": true,
32 "verify_email_link": true,
33 "verify_email_otp": true,
34 "verify_mobile_otp": true
35 }
36}