Slim Framework v3 Put method Error?

when i using put method
can’t retrive form-data values
here is my code

$app->put(’/api/task/’, function ($request, $response, $args) {
$input = $request->getParsedBody();

i’m also try ‘getParams’ method that also can’t

$input = $request->getParsedBody(); looks good-- so whatever is going on is likely elsewhere in your code. I assume you are overriding the HTTP request method in the form.