GET
/
library
/
sections
/
{sectionKey}
/
refresh
declare(strict_types=1);

require 'vendor/autoload.php';

use LukeHagar\Plex_API;
use LukeHagar\Plex_API\Models\Operations;

$sdk = Plex_API\PlexAPI::builder()
    ->setSecurity(
        '<YOUR_API_KEY_HERE>'
    )
    ->build();



$response = $sdk->library->getRefreshLibraryMetadata(
    sectionKey: 9518,
    force: Operations\Force::One

);

if ($response->statusCode === 200) {
    // handle response
}
This response does not have an example.

Authorizations

X-Plex-Token
string
header
required

Plex Authentication Token

Path Parameters

sectionKey
integer
required

The unique key of the Plex library. Note: This is unique in the context of the Plex server.

Example:

9518

Query Parameters

force
enum<integer>

Force the refresh even if the library is already being refreshed.

Available options:
0,
1
Example:

0

Response

200
_mintlify/placeholder

The library is refreshing