Admin Settings: Users

Create a new admin user

Create a new admin user

post/settings/users

Request

Request body

namestring required
emailstring required
passwordstring required
role_idinteger required
status0 | 1
imagestring nullable

Example request

{
  "name": "Jane Doe",
  "email": "jane@example.com",
  "password": "secret123",
  "role_id": 1,
  "status": 1,
  "image": "admins/jane.png"
}

Response

Admin created.

idinteger nullable
namestring nullable
emailstring nullable
roleIdinteger nullable
roleNamestring nullable
statusinteger nullable
imagestring nullable
imageUrlstring nullable
createdAtstring nullable
updatedAtstring nullable
messagestring nullable

Example response

{
  "id": 1,
  "name": "John Doe",
  "email": "john@example.com",
  "roleId": 1,
  "roleName": "Administrator",
  "status": 1,
  "image": "admins/1/avatar.png",
  "imageUrl": "https://your-domain.com/storage/admins/1/avatar.png",
  "createdAt": "2026-05-25T08:15:00+00:00",
  "updatedAt": "2026-05-25T08:20:00+00:00",
  "message": "User deleted successfully."
}

Changes

No recorded changes to this operation across all 8 revisions of this API.