Update a Staff Member
PUT
/staff/update/{staff_id}Updates information for an existing staff member.
Request
Body Params multipart/form-data
status
string
required
Example:
1
firstname
string
required
Example:
doe
lastname
string
required
Example:
john
Responses
Success(200)
Validations(422)
Unauthorized(401)
Not found(404)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
object
required
staffid
string
required
email
string
required
fullname
string
required
role
string
required
last_login
null
required
active
string
required
message
string
required
Example
{
"data": {
"staffid": "2",
"email": "[email protected]",
"fullname": "doe john",
"role": "Employee",
"last_login": null,
"active": "1"
},
"message": "success"
}
Last modified: 3 months ago