Modify the details of an existing staff member.
Request
Body Params application/json
{
"name": "John Doe",
"email": "john.doe@example.com",
"role": "Manager",
"location_id": "67890"
}
Request Code Samples
curl --location --request PUT '/staff/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "John Doe",
"email": "john.doe@example.com",
"role": "Manager",
"location_id": "67890"
}'
Responses
application/json
Staff details updated successfully
{
"id": "12345",
"name": "John Doe",
"email": "john.doe@example.com",
"role": "Manager",
"location_id": "67890",
"created_at": "2023-08-25T14:30:00Z"
}
Modified at 2024-12-17 09:12:01