Command: maintain own display name and email.
POST
/profile/update
const url = 'https://example.com/api/v1/profile/update';const options = { method: 'POST', headers: {cookie: 'dnse_session=<dnse_session>', 'Content-Type': 'application/json'}, body: '{"displayName":"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 POST \ --url https://example.com/api/v1/profile/update \ --header 'Content-Type: application/json' \ --cookie dnse_session=<dnse_session> \ --data '{ "displayName": "example", "email": "hello@example.com" }'Authorizations
Abschnitt betitelt „Authorizations“Request Bodyrequired
Abschnitt betitelt „Request Bodyrequired“Media typeapplication/json
object
displayName
string
email
string format: email
Examplegenerated
{ "displayName": "example", "email": "hello@example.com"}Responses
Abschnitt betitelt „Responses“Updated profile.
Media typeapplication/json
object
id
string format: uuid
username
string
role
string
displayName
string
email
string
Example
{ "role": "admin"}Malformed request.
Media typeapplication/json
object
error
required
string
Examplegenerated
{ "error": "example"}