API Domain
https://ioe-api.nextdrive.io/user-management
UMS (User Management Service)
NextDrive Account
① Login
|
Summary |
① Login
|
|
|---|---|---|
|
Description |
Login with account, password, and business code. |
|
|
Path on service |
POST /v1/accounts/login |
|
|
Request Body |
Content Type |
application/json |
|
Example Value |
JSON
|
|
|
Schema |
JSON
|
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
|
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
400
|
Response |
Status Code |
400 |
|---|---|---|
|
Description |
Invalid parameter |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
403
|
Response |
Status Code |
403 |
|---|---|---|
|
Description |
Forbidden |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Other Errors |
500
|
Response |
Status Code |
500 |
|---|---|---|
|
Description |
System error |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Message can be one off: anything |
② Refresh token
|
Summary |
② Refresh token
|
|
|---|---|---|
|
Description |
Refresh token |
|
|
Path |
GET /v1/tokens/refresh-token |
|
|
Request Header |
Description |
refresh token |
|
Content Type |
application/json |
|
|
Example Value
|
JSON
|
|
|
Schema |
The refresh token expires in 30 days. (2592000 / 86400 = 30 days) |
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
Provide an URL for refreshing token |
|
|
Content Type |
application/json |
|
|
Example Value |
|
|
|
Schema |
|
401
|
Response |
Status Code |
401 |
|---|---|---|
|
Description |
Unauthorized |
|
|
Content Type |
application/json |
|
|
Example Value |
|
|
|
Schema |
empty or incorrect
|
500
|
Response |
Status Code |
500 |
|---|---|---|
|
Description |
System error |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Message can be one off: anything |
③ Reset passwrod
|
Summary |
③ Reset password
|
|
|---|---|---|
|
Description |
Reset password |
|
|
Path |
PUT /v1/accounts/force-reset-password |
|
|
Request Body |
Description |
force-reset-password |
|
Content Type |
application/json |
|
|
Example Value |
|
|
|
Schema |
|
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
|
|
|
Content Type |
application/json |
|
|
Example Value |
|
|
|
Schema |
|
400
|
Response |
Status Code |
400 |
|---|---|---|
|
Description |
Invalid parameter |
|
|
Content Type |
application/json |
|
|
Example Value |
|
|
|
Schema |
|
299
|
Response |
Status Code |
299 |
|---|---|---|
|
Description |
Forbidden |
|
|
Content Type |
application/json |
|
|
Example Value |
|
|
|
Schema |
Message can be one off:
|
404
|
Response |
Status Code |
404 |
|---|---|---|
|
Description |
Resource not found |
|
|
Content Type |
application/json |
|
|
Example Value |
|
|
|
Schema |
|
500
|
Response |
Status Code |
500 |
|---|---|---|
|
Description |
System error |
|
|
Content Type |
application/json |
|
|
Example Value |
|
|
|
Schema |
Message can be one off: any thing |
④ Forgot password
|
Summary |
④ Forgot password
|
|
|---|---|---|
|
Description |
Forgot password |
|
|
Path |
POST /v1/accounts/forgot-password |
|
|
Request Body |
Description |
forgot password |
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
locale is an optional |
|
|
Note |
If the authentication code is entered incorrectly more than 5 times, you will need to wait 30 minutes before you can try again. |
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
To return info for Life+ API authentication |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
400
|
Response |
Status Code |
400 |
|---|---|---|
|
Description |
Invalid parameter |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
403
|
Response |
Status Code |
403 |
|---|---|---|
|
Description |
Forbidden |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
404
|
Response |
Status Code |
404 |
|---|---|---|
|
Description |
Resource not found |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
500
|
Response |
Status Code |
500 |
|---|---|---|
|
Description |
System error |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Message can be one off: any thing |
⑤ Confirm forgot password
|
Summary |
⑤ Confirm forgot password
|
|
|---|---|---|
|
Description |
Confirm forgot password |
|
|
Path |
POST /user-management/v1/accounts/confirm-password |
|
|
Request Body |
Description |
forgot password |
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
|
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
400
|
Response |
Status Code |
400 |
|---|---|---|
|
Description |
Invalid parameter |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
403
|
Response |
Status Code |
403 |
|---|---|---|
|
Description |
Forbidden |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Message can be one off:
|
404
|
Response |
Status Code |
404 |
|---|---|---|
|
Description |
Resource not found |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
500
|
Response |
Status Code |
500 |
|---|---|---|
|
Description |
System error |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Message can be one off: any thing |
Account Management
① Create an account by Admin
|
Summary |
① Create an account by Admin
|
|
|---|---|---|
|
Description |
Create an account by Admin |
|
|
Path on service |
POST /v1/accounts/create-account |
|
|
Permission |
Businesss::Admin |
|
|
Request Body |
Description |
create an account |
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
JSON
|
|
|
Note |
isSendEmail is optional; default false |
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
|
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
400
|
Response |
Status Code |
400 |
|---|---|---|
|
Description |
Invalid parameter |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
403
|
Response |
Status Code |
403 |
|---|---|---|
|
Description |
Forbidden |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Other Errors |
500
|
Response |
Status Code |
500 |
|---|---|---|
|
Description |
System error |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Message can be one off: anything |
② Get userUuid by email
|
Summary |
② Get userUuid by email
|
|
|---|---|---|
|
Description |
Get userUuid by email |
|
|
Path on service |
POST /v1/accounts/find-one |
|
|
Permission |
Businesss::Admin |
|
|
Request Body |
Description |
get the userUuid by email and optional businessCode |
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
JSON
|
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
|
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
400
|
Response |
Status Code |
400 |
|---|---|---|
|
Description |
Invalid parameter |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Invalid |
401
|
Response |
Status Code |
401 |
|---|---|---|
|
Description |
Unauthorized |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Cannot access due to limited permission. |
403
|
Response |
Status Code |
403 |
|---|---|---|
|
Description |
Forbidden |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Other Errors |
500
|
Response |
Status Code |
500 |
|---|---|---|
|
Description |
System error |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Message can be one off: anything |
③ Attach role
|
Summary |
③ Attach role
|
|
|---|---|---|
|
Description |
Attach role to account |
|
|
Path |
PUT /v1/accounts-roles/{role-name} |
|
|
Permission |
Business::Admin - Attach roles for the users of this business |
|
|
Request Params |
Content Type |
application/json |
|
Example Value |
JSON
|
|
|
Schema |
JSON
|
|
|
Request Body |
Content Type |
application/json |
|
Example Value |
JSON
|
|
|
Schema |
JSON
|
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
|
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
400
|
Response |
Status Code |
400 |
|---|---|---|
|
Description |
Invalid parameter |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
missing |
401
|
Response |
Status Code |
401 |
|---|---|---|
|
Description |
Unauthorized |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Cannot attach the role due to limited permission. |
403
|
Response |
Status Code |
403 |
|---|---|---|
|
Description |
Forbidden |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
500
|
Response |
Status Code |
500 |
|---|---|---|
|
Description |
System error |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Message can be one off: anything |
④ Detach role from account
|
Summary |
④ Detach role from account
|
|
|---|---|---|
|
Description |
Detach role from account |
|
|
Path |
DELETE /v1/accounts-roles/{role-name} |
|
|
Permission |
Business::Admin - Detach roles for the users of this business |
|
|
Request Params |
Content Type |
application/json |
|
Example Value |
JSON
|
|
|
Schema |
JSON
|
|
|
Request Body |
Content Type |
application/json |
|
Example Value |
JSON
|
|
|
Schema |
JSON
|
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
|
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
400
|
Response |
Status Code |
400 |
|---|---|---|
|
Description |
Invalid parameter |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
missing |
401
|
Response |
Status Code |
401 |
|---|---|---|
|
Description |
Unauthorized |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Cannot detach the role due to limited permission. |
403
|
Response |
Status Code |
403 |
|---|---|---|
|
Description |
Forbidden |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
500
|
Response |
Status Code |
500 |
|---|---|---|
|
Description |
System error |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Message can be one off: anything |
⑤ Get account list
|
Summary |
⑤ Get account list
|
|
|---|---|---|
|
Description |
Get account list of specific business (can filter by role and userUuid) |
|
|
Path |
POST /v1/accounts/search |
|
|
Permission |
|
|
|
Request Header |
Content-Type |
application/json |
|
Request Body |
Description |
get account list field |
|
Example Value |
JSON
|
|
|
Schema |
JSON
|
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
Get account list sucessfully |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
JSON
|
400
|
Response |
Status Code |
400 |
|---|---|---|
|
Description |
Invalid parameter |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
wrong format |
401
|
Response |
Status Code |
401 |
|---|---|---|
|
Description |
Unauthorized |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
403
|
Response |
Status Code |
403 |
|---|---|---|
|
Description |
Forbidden |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
404
|
Response |
Status Code |
404 |
|---|---|---|
|
Description |
Resource not found |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
500
|
Response |
Status Code |
500 |
|---|---|---|
|
Description |
System error |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|