Add ability to change password of another user

This commit is contained in:
Denis Arh
2019-06-26 19:15:01 +02:00
parent 70cac41579
commit 0d299e0f32
9 changed files with 246 additions and 41 deletions
+16
View File
@@ -734,6 +734,7 @@ An organisation may have many roles. Roles may have many channels available. Acc
| `DELETE` | `/users/{userID}` | Remove user |
| `POST` | `/users/{userID}/suspend` | Suspend user |
| `POST` | `/users/{userID}/unsuspend` | Unsuspend user |
| `POST` | `/users/{userID}/password` | Set's or changes user's password |
## Search users (Directory)
@@ -848,4 +849,19 @@ An organisation may have many roles. Roles may have many channels available. Acc
| --------- | ---- | ------ | ----------- | ------- | --------- |
| userID | uint64 | PATH | User ID | N/A | YES |
## Set's or changes user's password
#### Method
| URI | Protocol | Method | Authentication |
| --- | -------- | ------ | -------------- |
| `/users/{userID}/password` | HTTP/S | POST | Client ID, Session ID |
#### Request parameters
| Parameter | Type | Method | Description | Default | Required? |
| --------- | ---- | ------ | ----------- | ------- | --------- |
| userID | uint64 | PATH | User ID | N/A | YES |
| password | string | POST | New password | N/A | YES |
---