Create a Staff Member
POST
/staff/addCreates a new staff member.
Request
Body Params multipart/form-data
firstname
string
required
Example:
john
lastname
string
required
Example:
doe
admin
string
required
Example:
2
email
string
required
Example:
phonenumber
string
required
Example:
090078601
Responses
Success(200)
Validations(422)
Unauthorized(401)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
message
string
required
data
object
required
staffid
string
required
email
string
required
role
string
required
last_login
null
required
active
string
required
fullname
string
required
Example
{
"message": "Success",
"data": {
"staffid": "2",
"email": "[email protected]",
"role": "Employee",
"last_login": null,
"active": "1",
"fullname": "john doe"
}
}
Last modified: 3 months ago