Add _User and Role

Shihaam Abdul Rahman 2024-12-20 02:22:31 +00:00
parent 9be540b9fa
commit 4d4d9f18aa

25
_User-and-Role.md Normal file

@ -0,0 +1,25 @@
# Creating a new user
This is the body to include in the request:
```json
{
"type": 0,
"roleId": "admin_id",
"name": "test12231",
"password": "tesT1233-123",
"privilege": {
"all": false,
"sites": [
"66dcddb804aa0d2978cf145f"
]
},
"alert": false
}
```
example:
```bash
curl "http://localhost:8000/api/v2/account/users" \
-H 'content-type: application/json' \
-H "X-API-Key: xmB6rIuSSL9MpZqY678pF" \
--data-raw '{"type":0,"roleId":"admin_id","name":"test12231","password":"tesT1233-123","privilege":{"all":false,"sites":["66dcddb804aa0d2978cf145f"]},"alert":false}'
```