Updated on September 14, 2023
Update a movie
You can modify the details of an existing movie in the Monolito Movies database using the Monolito Movies API. This document provides instructions on how to make a PATCH request to update movie information.
Endpoint
To update a movie, make a PATCH request to the following endpoint:
Replace {movie_id}
with the unique identifier of the movie you want to update.
Request
Here's an example of how to make a PATCH request to update movie information using JavaScript:
In this example, we use the fetch
function to make an HTTP PATCH request to the specified API endpoint. Replace 54321
with the actual movie ID you want to update and provide the updated movie data.
Response
Upon successful update, the API will respond with the updated movie's details in JSON format, including any changes made to the movie's information.
Response Example
You can now update movie details as needed using the Monolito Movies API. Next, we'll cover how to delete a movie from the database.