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

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

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

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

            return $result;
        }
public function setStatus ( $ id , $ status ) { $ parameters = [ 'query' => [ ] , 'body' => json_encode ( [ 'status' => $ status ] , JSON_UNESCAPED_UNICODE ) , 'headers' => [ ] , ] ; $ result = $ this -> post ( 'v1/media/' . $ id . '/status' , $ parameters ) ; return $ result ; }
Change status of a Media.

This is used to move media from the uploaded tab into the library.
Possible statuses are: <ul> <li>approved</li> </ul>


@param int    $id     the Media identifier
@param string $status The new status of the media
Change status of a Media .