diff --git a/APIFolder/api.htm b/APIFolder/api.htm index 1184986ac..4400b5569 100644 --- a/APIFolder/api.htm +++ b/APIFolder/api.htm @@ -3136,6 +3136,9 @@ No Request Body

Create a User

Adds new application user.

+

Note: Password information is not required (or processed). Password details are auto-generated and then sent to the email account given + (which is why it can take a few seconds to complete). +



@@ -3152,11 +3155,9 @@ Request body: "username": "Another New User zll", "firstname": "Test", "lastname": "User", - "password": "window75", - "repeatPassword": "window75f", "email": "whatever@mifos.org", "officeId": 1, - "roles": ["2","3"] + "roles": [2,3] } @@ -3171,14 +3172,18 @@ Request body:

Update a User

+

Note: When updating a password you must provide the repeatPassword parameter also.

PUT https://thedomainname/api/v1/users/{userId) PUT https://localhost:8443/mifosng-provider/api/v1/users/3 Content-Type: application/json -Request body:{ - "firstname": "Test", - "roles": ["2"] +Request body: +{ + "firstname": "Test", + "roles": [2], + "password": "window75", + "repeatPassword": "window75" } @@ -3202,7 +3207,9 @@ Request body:{ Content-Type: application/json No Request Body -Question outstanding +{ + "entityId": 20 +}