Update user's standard attributes
Last updated
Was this helpful?
Was this helpful?
{
"data": {
"node": {
"standardAttributes": {
"name": "Name",
"given_name": "Given Name",
"family_name": "Family Name",
"middle_name": "Middle Name",
"nickname": "Nickname",
"profile": "https://<PROFILE_URL>",
"picture": "https://<PICTURE_URL>",
"website": "https://<WEBSITE_URL>",
"gender": "male",
"birthdate": "2020-01-01",
"zoneinfo": "Europe/London",
"locale": "en",
"address": {
"country": "GB",
"locality": "locality",
"postal_code": "postal code",
"region": "region",
"street_address": "full street address"
},
"updated_at": 1649428136
}
}
}
}mutation ($userID: ID!, $standardAttributes: UserStandardAttributes!) {
updateUser(input: {userID: $userID, standardAttributes: $standardAttributes}) {
user {
id
standardAttributes
updatedAt
}
}
}{
"userID": "<BASE64URL_ENCODED_USER_NODE_ID>",
"standardAttributes": {
/* Include all the original standard attributes from the previous response */
/* and change the attributes that you want to update */
/* The attributes that are missing in the payload will be deleted */
}
}{
"userID": "<BASE64URL_ENCODED_USER_NODE_ID>",
"standardAttributes": {
"name": "Name",
"given_name": "Given Name",
"family_name": "Family Name",
"middle_name": "Middle Name",
"nickname": "Nickname",
"profile": "https://<PROFILE_URL>",
"picture": "https://<PICTURE_URL>",
"website": "https://<WEBSITE_URL>",
"gender": "male",
"birthdate": "2020-01-01",
"zoneinfo": "Europe/London",
"locale": "en",
"address": {
"country": "GB",
"locality": "locality",
"postal_code": "postal code",
"region": "region",
"street_address": "full street address"
}
}
}{
"data": {
"updateUser": {
"user": {
"id": "VXNlcjo5N2IxYzkyOS04NDJjLTQxNWMtYTdkZi02OTY3ZWZkZGExNjA",
"standardAttributes": {
"name": "Name",
"given_name": "Given Name",
"family_name": "Family Name",
"middle_name": "Middle Name",
"nickname": "Nickname",
"profile": "https://<PROFILE_URL>",
"picture": "https://<PICTURE_URL>",
"website": "https://<WEBSITE_URL>",
"gender": "male",
"birthdate": "2020-01-01",
"zoneinfo": "Europe/London",
"locale": "en",
"address": {
"country": "GB",
"locality": "locality",
"postal_code": "postal code",
"region": "region",
"street_address": "full street address"
},
"updated_at": 1649428136
},
"updatedAt": "2022-04-08T14:40:16.410087Z"
}
}
}
}