Skip to content
ProductBlogOpen console
API

Update current user's profile

PATCH
/users/me
curl --request PATCH \
--url https://mw.omazy.ai/api/v1/users/me \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "display_name": "example", "first_name": "example", "last_name": "example", "locale": "example", "location": [ 1 ], "phone": "example", "timezone": "example" }'

Partial profile update

Media typeapplication/json
object
display_name
string
first_name
string
last_name
string
locale
string
location
Array<integer>
phone
string
timezone
string
Examplegenerated
{
"display_name": "example",
"first_name": "example",
"last_name": "example",
"locale": "example",
"location": [
1
],
"phone": "example",
"timezone": "example"
}

OK

Media typeapplication/json
object
data
error
object
code
string
message
string
meta
object
next_cursor
string
page
integer
per_page
integer
total
integer
success
boolean
data
object
auth_provider
string
created_at
string
email
string
first_name
string
id
string
is_anonymous
boolean
is_verified
boolean
last_login_at
string
last_name
string
location
Array<integer>
onboarding_completed
boolean
profile_image
string
role
string
user_type
string
Examplegenerated
{
"data": {
"auth_provider": "example",
"created_at": "example",
"email": "example",
"first_name": "example",
"id": "example",
"is_anonymous": true,
"is_verified": true,
"last_login_at": "example",
"last_name": "example",
"location": [
1
],
"onboarding_completed": true,
"profile_image": "example",
"role": "example",
"user_type": "example"
},
"error": {
"code": "example",
"message": "example"
},
"meta": {
"next_cursor": "example",
"page": 1,
"per_page": 1,
"total": 1
},
"success": true
}

Bad Request

Media typeapplication/json
object
data
error
object
code
string
message
string
meta
object
next_cursor
string
page
integer
per_page
integer
total
integer
success
boolean
error
object
code
string
message
string
Examplegenerated
{
"data": "example",
"error": {
"code": "example",
"message": "example"
},
"meta": {
"next_cursor": "example",
"page": 1,
"per_page": 1,
"total": 1
},
"success": true
}

Unauthorized

Media typeapplication/json
object
data
error
object
code
string
message
string
meta
object
next_cursor
string
page
integer
per_page
integer
total
integer
success
boolean
error
object
code
string
message
string
Examplegenerated
{
"data": "example",
"error": {
"code": "example",
"message": "example"
},
"meta": {
"next_cursor": "example",
"page": 1,
"per_page": 1,
"total": 1
},
"success": true
}