curl -X PUT "https://your-domain.com/api/series/abc123/seasons/def456/chapters/ghi789" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d '{ "title": "Episode 1: A New Beginning", "description": "Updated description with more details about the episode content" }'
The MediaStream API uses POST method for updates. The Laravel controller automatically handles this conversion from PUT to POST.
Change the episode title to something more descriptive:
{ "title": "Episode 1: The Journey Begins"}
Update Episode Description
Enhance the episode description with more details:
{ "description": "In this exciting first episode, our heroes embark on an adventure that will change their lives forever. Watch as they discover hidden secrets and face unexpected challenges."}
When updating video content, ensure the new video ID is valid and the video has been successfully uploaded to MediaStream. Invalid video IDs will cause playback failures.
It’s best practice to update only the fields that have changed rather than sending the entire episode object. This reduces bandwidth and processing time.
Updates are reflected immediately in the UI. Users viewing the episode list or detail page will see the changes after refreshing.