Skip to main content
PATCH
Update the current user

Authorizations

Authorization
string
header
required

Default authentication mechanism

Body

application/json
fullName
string

Full name of the user. Must be between 2 and 32 characters

Required string length: 2 - 32
Example:

"Jane Doe"

teamId
string

Unique identifier of the team the user belongs to

Example:

"team-abc123"

email
string<email>

Email address of the user

Example:

"jane.doe@acme.com"

avatarUrl
string<uri>

URL to the user's avatar image

Example:

"https://example.supabase.co/storage/v1/object/public/avatars/user.jpg"

locale
string

User's preferred locale for internationalization (language and region)

Example:

"en-US"

weekStartsOnMonday
boolean

Whether the user's calendar week starts on Monday (true) or Sunday (false)

Example:

true

timezone
string

User's timezone identifier in IANA Time Zone Database format

Example:

"America/New_York"

timezoneAutoSync
boolean

Whether to automatically sync timezone with browser timezone

Example:

true

timeFormat
number

User's preferred time format: 12 for 12-hour format, 24 for 24-hour format

Example:

24

dateFormat
enum<string>

User's preferred date format. Available options: 'dd/MM/yyyy', 'MM/dd/yyyy', 'yyyy-MM-dd', 'dd.MM.yyyy'

Available options:
dd/MM/yyyy,
MM/dd/yyyy,
yyyy-MM-dd,
dd.MM.yyyy
Example:

"yyyy-MM-dd"

jobTitle
string

User's job title or role within the organization

Maximum string length: 100
Example:

"VP of Collections"

department
string

User's department within the organization

Maximum string length: 100
Example:

"Underwriting"

phone
string

User's direct phone number

Maximum string length: 30
Example:

"(555) 123-4567"

Response

200 - application/json

The updated user

id
string<uuid>
required

Unique identifier of the user

Example:

"123e4567-e89b-12d3-a456-426614174000"

fullName
string
required

Full name of the user

Example:

"Jane Doe"

email
string<email>
required

Email address of the user

Example:

"jane.doe@acme.com"

avatarUrl
string<uri> | null
required

URL to the user's avatar image

Example:

"https://example.supabase.co/storage/v1/object/public/avatars/user.jpg"

locale
string | null
required

User's preferred locale for internationalization (language and region)

Example:

"en-US"

weekStartsOnMonday
boolean | null
required

Whether the user's calendar week starts on Monday (true) or Sunday (false)

Example:

true

timezone
string | null
required

User's timezone identifier in IANA Time Zone Database format

Example:

"America/New_York"

timezoneAutoSync
boolean | null
required

Whether to automatically sync timezone with browser timezone

Example:

true

timeFormat
number | null
required

User's preferred time format: 12 for 12-hour format, 24 for 24-hour format

Example:

24

dateFormat
enum<string> | null
required

User's preferred date format. Available options: 'dd/MM/yyyy', 'MM/dd/yyyy', 'yyyy-MM-dd', 'dd.MM.yyyy'

Available options:
dd/MM/yyyy,
MM/dd/yyyy,
yyyy-MM-dd,
dd.MM.yyyy,
null
Example:

"yyyy-MM-dd"

fileKey
string | null
required

Team file key (JWT token) for proxy/download access to team files. This compact JWT token contains the team ID and is shared by all team members. Use this token as the fk query parameter when accessing file endpoints (proxy, download). The token is team-scoped and provides access to files belonging to the user's team. Returns null if the user has no team.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZWFtSWQiOiIxMjM0NTY3OC05YWJjLWRlZmctMTIzNC01Njc4OTBhYmNkZWYifQ.signature"

team
object | null
required

Team information that the user belongs to