mutation

setMobileNumberAsPrimary

Set a mobile number as the primary contact for the user.
Arguments
sendVerificationLinkMobileRequestSchemaInput
SendVerificationLinkMobileRequestSchemaInput
Describes the request structure to send verification link to phone number.
Response
register_token
String
A token used for registration purposes.
request_id
String
A random uuid string used to track the send OTP response.
Describes the user details structure.
Mutation
1mutation setMobileNumberAsPrimary(
2 $sendVerificationLinkMobileRequestSchemaInput: SendVerificationLinkMobileRequestSchemaInput
3) {
4 setMobileNumberAsPrimary(
5 sendVerificationLinkMobileRequestSchemaInput: $sendVerificationLinkMobileRequestSchemaInput
6 ) {
7 register_token
8 request_id
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 }
28}
Try it
Input Variables
1{
2 "sendVerificationLinkMobileRequestSchemaInput": {
3 "active": true,
4 "country_code": "country_code",
5 "phone": "1+ 418-323-4236",
6 "primary": true,
7 "verified": true
8 }
9}
Response
1{
2 "setMobileNumberAsPrimary": {
3 "register_token": "register_token",
4 "request_id": "request_id",
5 "user": {
6 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
7 "account_type": "account_type",
8 "active": true,
9 "application_id": "application_id",
10 "created_at": "created_at",
11 "dob": "dob",
12 "first_name": "first_name",
13 "gender": "gender",
14 "last_name": "last_name",
15 "meta": {},
16 "profile_pic_url": "profile_pic_url",
17 "updated_at": "updated_at",
18 "user_id": "user_id",
19 "username": "username",
20 "external_id": "external_id",
21 "rr_id": "rr_id"
22 }
23 }
24}