Update a profile
Query
mutation UpdateProfile($profileId: ID!, $input: ProfileInput!) {
tenant {
updateProfile(profileId: $profileId, input: $input) {
id
photoUrl
nickname
firstName
lastName
fullname
user {
id
username
}
}
}
}
Variables
{
"profileId": 1,
"input": {
"firstName": "Vincent",
"lastName": "Cyberpunk",
"nickname": "V"
}
}
Response
{
"data": {
"tenant": {
"updateProfile": {
"firstName": "Vincent",
"fullname": "Vincent Cyberpunk",
"id": "1",
"lastName": "Cyberpunk",
"nickname": "V",
"photoUrl": null,
"user": {
"id": "1",
"username": "someone@example.com"
}
}
}
}
}
Last updated
Was this helpful?