Update the current user's display name and email
PUT
/me
const url = 'https://your-server.example/api/me';const options = { method: 'PUT', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{"display_name":"example","email":"hello@example.com"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://your-server.example/api/me \ --header 'Content-Type: application/json' \ --cookie session=<session> \ --data '{ "display_name": "example", "email": "hello@example.com" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
display_name
string
email
string format: email
Example generated
{ "display_name": "example", "email": "hello@example.com"}Responses
Section titled “Responses”Updated.
Media typeapplication/json
object
status
string
Example
{ "status": "ok"}