Skip to content

Change role, password or disabled flag

PATCH
/api/v1/users/{id}
curl --request PATCH \
--url http://localhost:8080/api/v1/users/example \
--header 'Content-Type: application/json' \
--header 'X-Brokerium-Request: 1' \
--cookie brokerium_session=<brokerium_session> \
--data '{ "username": "example", "password": "example", "role": "admin", "disabled": true }'

Role: admin.

id
required
string
X-Brokerium-Request
required
string
Allowed value: 1

Required on every non-GET request.

Media typeapplication/json
object
username
string
password
string format: password
>= 8 characters
role
string
Allowed values: admin operator viewer
disabled
boolean

Updated.

Media typeapplication/json
object
user
object
id
required
string
username
required
string
role
required
string
Allowed values: admin operator viewer
disabled
required
boolean
createdAt
required
string format: date-time
updatedAt
required
string format: date-time

Example

{
"user": {
"role": "admin"
}
}

Apache®, Apache Kafka® and Kafka® are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries. Brokerium is not affiliated with, endorsed by, or sponsored by the Apache Software Foundation.