Update a TV Show Series 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/{id}/match?guid={guid}&name={name}&year={year}&X-Plex-Token={plex_token}

Parameters

NameDescription
ip_addressThe IP address of the Plex Media server.
plex_tokenThe Plex token.
idThe 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.
guidThis 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.
nameThe name of the TV show.
yearThe year the TV show debuted.

Return Status

HTTP CodeDescription
200Success - The request was successful.
401Unauthorized - The Plex token provided was not valid.
404Not Found - The TV show series associated with the id parameter was not found.

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.

MediaContainer Attributes
AttributeDescription
sizeThe number of tv shows.
identifierThe type of item.
mediaTagPrefixPrefix for the media tag.
mediaTagVersionMedia tag version.
Note: This could be a date and time value.

Examples

curl -X PUT http://{ip_address}:32400/library/metadata/{id}/match?guid={guid}&name={name}&year={year}&X-Plex-Token={plex_token}
import requests
plex_url = http://{ip_address}:32400/library/metadata/{id}/match?guid={guid}&name={name}&year={year}&X-Plex-Token={plex_token}
response = requests.put(plex_url)
print(response.text)
$response = Invoke-RestMethod 'http://{ip_address}:32400/library/metadata/{id}/match?guid={guid}&name={name}&year={year}&X-Plex-Token={plex_token}' -Method 'PUT'
Write-Output $response
Subscribe
Display