Update self username
Updates the username of the currently authenticated user. The change is persisted to the database immediately.
Updates the username of the currently authenticated user. The change is persisted to the database immediately.
Preferred API authentication. Use a JWT with the api audience.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
The new username to set for the current user. This will replace the existing username in the database.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://127.0.0.1:38765/v1/client/username" \ -H "Content-Type: application/json" \ -d '{ "username": "" }'{}{
"code": 0,
"grpc-code": "string",
"message": "string",
"stack-trace": "string",
"details": [
{}
]
}{
"code": 0,
"grpc-code": "string",
"message": "string",
"stack-trace": "string",
"details": [
{}
]
}{
"code": 0,
"grpc-code": "string",
"message": "string",
"stack-trace": "string",
"details": [
{}
]
}How is this page?
Update self email PATCH
Updates the email address of the currently authenticated user. The change is persisted to the database immediately.
Execute command POST
Executes a command string within the specified scope. The command is parsed and executed using the Brigadier command dispatcher. Permission requirements depend on the scope: - Global scope: Requires GLOBAL_COMMAND_EXECUTION permission - Instance scope: Requires INSTANCE_COMMAND_EXECUTION for the instance - Bot scope: Requires INSTANCE_COMMAND_EXECUTION for the parent instance