mutation

addEmail

Add a new email address to the user's profile.
Arguments
editEmailRequestSchemaInput
EditEmailRequestSchemaInput
Describes the request structure to add User email.
platform
String
ID of the application.
Response
Describes the user details structure.
verify_email_link
Boolean
Whether the email verification link was successful.
Mutation
1mutation addEmail(
2 $editEmailRequestSchemaInput: EditEmailRequestSchemaInput
3 $platform: String
4) {
5 addEmail(
6 editEmailRequestSchemaInput: $editEmailRequestSchemaInput
7 platform: $platform
8 ) {
9 user {
10 id
11 account_type
12 active
13 application_id
14 created_at
15 dob
16 first_name
17 gender
18 last_name
19 meta
20 profile_pic_url
21 updated_at
22 user_id
23 username
24 external_id
25 rr_id
26 }
27 verify_email_link
28 }
29}
Try it
Input Variables
1{
2 "editEmailRequestSchemaInput": {
3 "email": "[email protected]"
4 },
5 "platform": "platform"
6}
Response
1{
2 "addEmail": {
3 "user": {
4 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
5 "account_type": "account_type",
6 "active": true,
7 "application_id": "application_id",
8 "created_at": "created_at",
9 "dob": "dob",
10 "first_name": "first_name",
11 "gender": "gender",
12 "last_name": "last_name",
13 "meta": {},
14 "profile_pic_url": "profile_pic_url",
15 "updated_at": "updated_at",
16 "user_id": "user_id",
17 "username": "username",
18 "external_id": "external_id",
19 "rr_id": "rr_id"
20 },
21 "verify_email_link": true
22 }
23}