Update current user
PATCH
/api/v1/users/me
const url = 'https://example.com/api/v1/users/me';const options = { method: 'PATCH', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"email":"example","fullname":"example","preferred_language":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/users/me \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "email": "example", "fullname": "example", "preferred_language": "example" }'Updates the current user’s profile fields.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Request body
Media typeapplication/json
object
email
string
fullname
string
preferred_language
PreferredLanguage is the UI language tag the operator picked. Validated against the supported-language list; an empty value leaves the stored preference unchanged (same semantics as the other patch fields).
string
Examplegenerated
{ "email": "example", "fullname": "example", "preferred_language": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
admin
boolean
email
string
fullname
string
last_access
string
permissions
object
key
additional properties
object
admin
boolean
carve
boolean
query
boolean
user
boolean
preferred_language
PreferredLanguage mirrors AdminUser.PreferredLanguage — the UI language the operator picked. Empty means “no server-side preference”; the SPA falls back to its own detection.
string
service
boolean
token_expire
string
username
string
uuid
string
Examplegenerated
{ "admin": true, "email": "example", "fullname": "example", "last_access": "example", "permissions": { "additionalProperty": { "admin": true, "carve": true, "query": true, "user": true } }, "preferred_language": "example", "service": true, "token_expire": "example", "username": "example", "uuid": "example"}Bad request
Media typeapplication/json
object
code
string
error
string
Examplegenerated
{ "code": "example", "error": "example"}Unauthorized
Media typeapplication/json
object
code
string
error
string
Examplegenerated
{ "code": "example", "error": "example"}Forbidden
Media typeapplication/json
object
code
string
error
string
Examplegenerated
{ "code": "example", "error": "example"}Not found
Media typeapplication/json
object
code
string
error
string
Examplegenerated
{ "code": "example", "error": "example"}Conflict
Media typeapplication/json
object
code
string
error
string
Examplegenerated
{ "code": "example", "error": "example"}Too many requests
Media typeapplication/json
object
code
string
error
string
Examplegenerated
{ "code": "example", "error": "example"}Internal server error
Media typeapplication/json
object
code
string
error
string
Examplegenerated
{ "code": "example", "error": "example"}Service unavailable
Media typeapplication/json
object
code
string
error
string
Examplegenerated
{ "code": "example", "error": "example"}