Controller/MediaController.php
public function restoreMedia($id)
        {
            $parameters = [
            'query' => [],
            'body' => json_encode([], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

            $result = $this->post('v1/media/' . $id . '/restore', $parameters);
            $result = new MediaResponse($result);

            return $result;
        }
public function restoreMedia($id)
        {
            $parameters = [
            'query' => [],
            'body' => json_encode([], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

            $result = $this->post('v1/media/' . $id . '/restore', $parameters);
            $result = new MediaResponse($result);

            return $result;
        }
public function restoreMedia ( $ id ) { $ parameters = [ 'query' => [ ] , 'body' => json_encode ( [ ] , JSON_UNESCAPED_UNICODE ) , 'headers' => [ ] , ] ; $ result = $ this -> post ( 'v1/media/' . $ id . '/restore' , $ parameters ) ; $ result = new MediaResponse ( $ result ) ; return $ result ; }
Restore a deleted Media.

Can not restore a Media that has been hard deleted!

@param  int           $id the Media identifier
@return MediaResponse
Restore a deleted Media .