Zum Inhalt springen

Command: maintain own display name and email.

POST
/profile/update
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" }'
Media typeapplication/json
object
displayName
string
email
string format: email
Examplegenerated
{
"displayName": "example",
"email": "hello@example.com"
}

Updated profile.

Media typeapplication/json
object
id
string format: uuid
username
string
role
string
Allowed values: admin user
displayName
string
email
string
Example
{
"role": "admin"
}

Malformed request.

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}