Update TV Show Series Details Using Match
You can update metadata for a TV show series using Plex's match feature and the API. This API command will use the information returned from the search for match API to update the series' metadata.
URL
PUT http://[IP address]:32400/library/metadata/[TV Show ID]/match?guid=[TV Show GUID]&name=[TV Show Name]&year=[TV Show Year]&X-Plex-Token=[PlexToken]
Parameters
Name | Description |
---|---|
IP address | The IP address of the Plex Media server. |
PlexToken | The authentication Plex token. |
TV Show ID | The key associated with the TV show to be updated. This key can be found by calling the Get All TV Shows API command and looking for the TV show series to be updated. |
TV Show GUID | This is the unique identifier returned by the search for match API. Each SearchResult will have a guid attribute. It will be in the format plex://show/[string value] . That GUID string is what will be used for this parameter value. |
TV Show Name | The name of the TV show. |
TV Show Year | The year the TV show debuted. |
Return Status
HTTP Code | Description |
---|---|
200 | Success - The request was successful. |
401 | Unauthorized - The Plex token provided was not valid. |
404 | Not Found - The TV Show ID value is incorrect. |
Response
An XML string is returned, but doesn't provide information about the update. If the status code is 200 and the XML is returned then that would indicated a success.
The response consists of a single MediaContainer
element with a few attributes.
Attribute | Description |
---|---|
size | The number of tv shows. |
identifier | The type of item. |
mediaTagPrefix | Prefix for the media tag. |
mediaTagVersion | Media tag version. Note: This could be a date and time value. |
Examples
Example 1
Update the TV show (Joy of Painting) associated with ID 289285 on the Plex Media Server located at the IP address of 192.168.1.4 with the information associated with plex://show/5d9c086e3c3f87001f34fc00
:
PUT http://192.168.1.4:32400/library/metadata/289285/match?guid=plex://show/5d9c086e3c3f87001f34fc00&name=The Joy of Painting&year=1983&X-Plex-Token=&X-Plex-Token=L6vkd7JtLHjsH5987vYY