Skip to main content

updateProfile

Requires an authenticated session.

Updates the signed-in user's own profile: name, email, phone, avatar, bio, address and city.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation UpdateProfile($input: UpdateProfileInput!) {
updateProfile(input: $input) {
id
postalCode
name
firstName
lastName
status
directPermissions {
id
name
createdAt
action
description
direct
}
}
}

Variables:

{
"input": {}
}

Response:

{
"data": {
"updateProfile": {
"id": "id",
"postalCode": "string",
"name": "string",
"firstName": "string",
"lastName": "string",
"status": "ACTIVE",
"directPermissions": [
{
"id": "id",
"name": "string",
"createdAt": "2025-01-15T00:00:00Z",
"action": "string",
"description": "string",
"direct": true
}
]
}
}
}
updateProfile(
input: UpdateProfileInput!
): User!

Arguments​

updateProfile.input ● UpdateProfileInput! non-null input​

The profile fields to change.

Type​

User object​

A user of the organization.