Update a device
PUT/management/devices/:id
Update handles the HTTP PUT request to update an existing device entity. It parses the device ID from the URL parameters, validates the request body, and updates the device using the provided service. Returns appropriate HTTP status codes and error messages for invalid input, validation errors, or if the device is not found.
Request
Responses
- 200
- 404
- 422
OK
Not Found
Unprocessable Entity