Update an existing employee
Updates the details of an employee based on the provided ID
PUT
/employees/{id}
curl \
--request PUT 'http://localhost:8080/employees/{id}' \
--header "Content-Type: application/json" \
--data '{"name":"Bilbo Baggins","role":"Software Engineer"}'
Request examples
{
"name": "Bilbo Baggins",
"role": "Software Engineer"
}
Response examples (404)
string
Response examples (200)
{
"id": 1234,
"name": "Bilbo Baggins",
"role": "Software Engineer"
}