Overview
This endpoint updates an existing series with new information. You can update the title, description, type, images, and other metadata associated with the series.
Authentication
This endpoint requires MediaStream API authentication using the X-API-Token header.
Your MediaStream API authentication token
Accept
string
default:"application/json"
Content type for the response
Content-Type
string
default:"application/json"
Content type of the request body
Path Parameters
The unique identifier of the series to update
Request Body
All fields are optional. Only include the fields you want to update.
The updated title of the series
The type of content (e.g., “tvshow”)
Updated description of the series
Updated array of image objects to associate with the series
Additional metadata for the series (structure depends on MediaStream platform)
Response
The response structure depends on the MediaStream platform API. Typically returns the updated series object.
Unique identifier for the series
The updated title of the series
Updated description of the series
Updated array of image objects
Timestamp when the series was last updated
Example Request
curl -X PUT "https://your-domain.com/api/series/507f1f77bcf86cd799439011" \
-H "X-API-Token: your_api_token" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"title": "Breaking Bad - Updated",
"description": "An updated description of the series"
}'
Example Response
{
"_id": "507f1f77bcf86cd799439011",
"title": "Breaking Bad - Updated",
"type": "tvshow",
"description": "An updated description of the series",
"images": [
{
"_id": "507f1f77bcf86cd799439012",
"path": "/images/breaking-bad-poster.jpg",
"basePath": "/platform-static/images/breaking-bad-poster.jpg"
}
],
"seasons": [
{
"_id": "507f1f77bcf86cd799439014",
"title": "Season 1"
}
],
"created_at": "2024-01-15T08:30:00Z",
"updated_at": "2024-03-05T14:45:00Z"
}
Response Status Codes
Series successfully updated
Invalid or missing API token
Series with the specified ID does not exist
Validation error - the request data doesn’t meet requirements
An error occurred while updating the series in MediaStream
Implementation Notes
- The endpoint uses PUT method in Laravel routes but sends a POST request to MediaStream API
- This is because the MediaStream platform uses POST for updates
- All request data is forwarded to the MediaStream platform at
/show/{showId}
- The update is partial - you only need to send the fields you want to change
- Series are internally referred to as “shows” in the route parameters and backend code
Best Practices
- Only send the fields you want to update to minimize payload size
- Validate data on the client side before sending to reduce failed requests
- Handle 404 errors gracefully in case the series was deleted
- Consider versioning or conflict resolution if multiple clients might update the same series