Skip to content

Update the authenticated user

Updates the authenticated user’s profile.

POST
/v1/user/update
curl --request POST \
--url https://api.shiftsync.app/v1/user/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "emailAddress": "user@example.com", "firstName": "string", "lastName": "string", "firstDayOfWeek": "Monday", "timezone": "string" }'
Media typeapplication/json
object
emailAddress
string format: email
/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/
firstName
string
>= 1 characters <= 100 characters
lastName
string
<= 100 characters
firstDayOfWeek
string
Allowed values: Monday Tuesday Wednesday Thursday Friday Saturday Sunday
timezone
string
Example
{
"emailAddress": "user@example.com",
"firstName": "string",
"lastName": "string",
"firstDayOfWeek": "Monday",
"timezone": "string"
}

The updated user

Media typeapplication/json
object
user
required
object
id
required
integer
>= -9007199254740991 <= 9007199254740991
emailAddress
required
string format: email
/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/
firstName
required
string
lastName
string
verified
required
boolean
isFacebookAuth
boolean
isGoogleAuth
boolean
isMicrosoftAuth
boolean
hasPassword
boolean
userPlan
required
string
Allowed values: free premium
firstDayOfWeek
required
string
timezone
required
string
nullable
avatarUrls
object
small
required
string format: uri
medium
required
string format: uri
large
required
string format: uri
markedForDeletion
required
boolean
deletionScheduledFor
string
Example
{
"user": {
"id": 0,
"emailAddress": "user@example.com",
"firstName": "string",
"lastName": "string",
"verified": true,
"isFacebookAuth": true,
"isGoogleAuth": true,
"isMicrosoftAuth": true,
"hasPassword": true,
"userPlan": "free",
"firstDayOfWeek": "string",
"timezone": "string",
"avatarUrls": {
"small": "https://example.com",
"medium": "https://example.com",
"large": "https://example.com"
},
"markedForDeletion": true,
"deletionScheduledFor": "string"
}
}