Media
(Media)
Overview
API Calls interacting with Plex Media Server Media
Available Operations
MarkPlayed
This will mark the provided media key as Played.
Example Usage
Parameters
| Parameter |
Type |
Required |
Description |
Example |
Key |
double |
✔️ |
The media key to mark as played |
59398 |
Response
MarkPlayedResponse
Errors
| Error Object |
Status Code |
Content Type |
| LukeHagar.PlexAPI.SDK.Models.Errors.MarkPlayedResponseBody |
400 |
application/json |
| LukeHagar.PlexAPI.SDK.Models.Errors.MarkPlayedMediaResponseBody |
401 |
application/json |
| LukeHagar.PlexAPI.SDK.Models.Errors.SDKException |
4xx-5xx |
/ |
MarkUnplayed
This will mark the provided media key as Unplayed.
Example Usage
Parameters
| Parameter |
Type |
Required |
Description |
Example |
Key |
double |
✔️ |
The media key to mark as Unplayed |
59398 |
Response
MarkUnplayedResponse
Errors
| Error Object |
Status Code |
Content Type |
| LukeHagar.PlexAPI.SDK.Models.Errors.MarkUnplayedResponseBody |
400 |
application/json |
| LukeHagar.PlexAPI.SDK.Models.Errors.MarkUnplayedMediaResponseBody |
401 |
application/json |
| LukeHagar.PlexAPI.SDK.Models.Errors.SDKException |
4xx-5xx |
/ |
UpdatePlayProgress
This API command can be used to update the play progress of a media item.
Example Usage
Parameters
| Parameter |
Type |
Required |
Description |
Example |
Key |
string |
✔️ |
the media key |
|
Time |
double |
✔️ |
The time, in milliseconds, used to set the media playback progress. |
90000 |
State |
string |
✔️ |
The playback state of the media item. |
played |
Response
UpdatePlayProgressResponse
Errors
| Error Object |
Status Code |
Content Type |
| LukeHagar.PlexAPI.SDK.Models.Errors.UpdatePlayProgressResponseBody |
400 |
application/json |
| LukeHagar.PlexAPI.SDK.Models.Errors.UpdatePlayProgressMediaResponseBody |
401 |
application/json |
| LukeHagar.PlexAPI.SDK.Models.Errors.SDKException |
4xx-5xx |
/ |
GetBannerImage
Gets the banner image of the media item
Example Usage
Parameters
| Parameter |
Type |
Required |
Description |
request |
GetBannerImageRequest |
✔️ |
The request object to use for the request. |
Response
GetBannerImageResponse
Errors
| Error Object |
Status Code |
Content Type |
| LukeHagar.PlexAPI.SDK.Models.Errors.GetBannerImageResponseBody |
400 |
application/json |
| LukeHagar.PlexAPI.SDK.Models.Errors.GetBannerImageMediaResponseBody |
401 |
application/json |
| LukeHagar.PlexAPI.SDK.Models.Errors.SDKException |
4xx-5xx |
/ |
GetThumbImage
Gets the thumbnail image of the media item
Example Usage
Parameters
| Parameter |
Type |
Required |
Description |
request |
GetThumbImageRequest |
✔️ |
The request object to use for the request. |
Response
GetThumbImageResponse
Errors
| Error Object |
Status Code |
Content Type |
| LukeHagar.PlexAPI.SDK.Models.Errors.GetThumbImageResponseBody |
400 |
application/json |
| LukeHagar.PlexAPI.SDK.Models.Errors.GetThumbImageMediaResponseBody |
401 |
application/json |
| LukeHagar.PlexAPI.SDK.Models.Errors.SDKException |
4xx-5xx |
/ |