Skip to main content
PUT
/
v1
/
users
/
me
cURL
curl --request PUT \
  --url https://api.novacal.io/v1/users/me \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "<string>",
  "email": "jsmith@example.com",
  "first_name": "<string>",
  "timezone": "<string>",
  "time_format": 12,
  "start_of_week": 0,
  "last_name": "<string>",
  "avatar": "<string>"
}
'
{
  "success": true,
  "data": {
    "id": 123,
    "first_name": "<string>",
    "last_name": "<string>",
    "username": "<string>",
    "email": "jsmith@example.com",
    "timezone": "<string>",
    "time_format": 12,
    "start_of_week": 0,
    "avatar": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

User data to update

username
string
required

The unique username for the user (must be unique across users and teams)

Maximum string length: 255
Pattern: ^[a-z0-9][a-z0-9\-\._]+[a-z0-9]$
email
string<email>
required

The user's email address (must be unique)

Maximum string length: 255
first_name
string
required

The user's first name

Maximum string length: 255
timezone
string
required

The user's timezone (e.g., America/New_York)

time_format
enum<integer>
required

The user's preferred time format (12 or 24)

Available options:
12,
24
start_of_week
enum<integer>
required

The day that starts the week (0 for Sunday, 1 for Monday)

Available options:
0,
1
last_name
string

The user's last name

Maximum string length: 255
avatar
file

Avatar image file (jpeg, png, jpg, svg, max 1024 KB)

Response

200 - application/json

User updated

success
boolean
required

Indicates whether the request was successful

Example:

true

data
object
required