mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update 0.1.7.md
This commit is contained in:
parent
28f8c6040d
commit
7e1fdff9b6
@ -117,7 +117,7 @@ New API endpoints are available for automating various administrative tasks or i
|
||||
```
|
||||
- Create account
|
||||
```bash
|
||||
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer JWT_TOKEN_HERE" -d '{"email": "EMAIL_HERE", "username": "USERNAME_HERE", "password": "PASSWORD_HERE", "plan_id": "PLAN_ID_HERE"}' http://PANEL:2087/api/users
|
||||
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer JWT_TOKEN_HERE" -d '{"email": "EMAIL_HERE", "username": "USERNAME_HERE", "password": "PASSWORD_HERE", "plan_name": "PLAN_NAME_HERE"}' http://PANEL:2087/api/users
|
||||
```
|
||||
- Suspend account
|
||||
```bash
|
||||
@ -137,7 +137,7 @@ New API endpoints are available for automating various administrative tasks or i
|
||||
```
|
||||
- Change plan
|
||||
```bash
|
||||
curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer JWT_TOKEN_HERE" -d '{"plan_id": "PLAN_ID_HERE"}' http://PANEL:2087/api/users/USERNAME_HERE
|
||||
curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer JWT_TOKEN_HERE" -d '{"plan_name": "PLAN_NAME_HERE"}' http://PANEL:2087/api/users/USERNAME_HERE
|
||||
```
|
||||
- Autologin
|
||||
```bash
|
||||
|
Loading…
Reference in New Issue
Block a user