{
"username": "admin12",
"password": "Pass1234",
"email": "admin12@example.com",
"phone": "0123456789",
"address": "123 Admin Street",
"isActive": true,
"role": 3
}
“Request body”
{
"roles": [
{
"id": 1,
"documentId": "nr6ark2fyvddliq40g2iyv0p",
"name": "Authenticated",
"description": "Default role given to authenticated user.",
"type": "authenticated",
"createdAt": "2024-10-21T09:46:42.212Z",
"updatedAt": "2024-10-21T09:46:42.212Z",
"publishedAt": "2024-10-21T09:46:42.212Z",
"nb_users": 9
},
{
"id": 3,
"documentId": "zchkmxvz7xeb3g0ck4bslgfd",
"name": "Admin",
"description": "Catering Management Admin.",
"type": "admin",
"createdAt": "2024-10-21T09:48:31.106Z",
"updatedAt": "2024-10-21T09:48:31.106Z",
"publishedAt": "2024-10-21T09:48:31.107Z",
"nb_users": 0
},
{
"id": 2,
"documentId": "k54kqycnplo7o8ek40324po0",
"name": "Public",
"description": "Default role given to unauthenticated user.",
"type": "public",
"createdAt": "2024-10-21T09:46:42.215Z",
"updatedAt": "2024-10-21T09:48:50.156Z",
"publishedAt": "2024-10-21T09:46:42.215Z",
"nb_users": 0
}
]
}
Roles
{
"user": {
"id": 12,
"documentId": "f0yuguci2hlkkyqgdvx4nw89",
"username": "admin12",
"email": "admin12@example.com",
"provider": "local",
"confirmed": true,
"blocked": false,
"isActive": true,
"phone": "0123456789",
"address": "123 Admin Street",
"createdAt": "2024-10-21T10:27:12.427Z",
"updatedAt": "2024-10-21T10:27:12.427Z",
"publishedAt": "2024-10-21T10:27:12.427Z",
"role": {
"id": 1,
"documentId": "nr6ark2fyvddliq40g2iyv0p",
"name": "Authenticated",
"description": "Default role given to authenticated user.",
"type": "authenticated",
"createdAt": "2024-10-21T09:46:42.212Z",
"updatedAt": "2024-10-21T09:46:42.212Z",
"publishedAt": "2024-10-21T09:46:42.212Z"
}
}
}
Response body.