Updated on September 14, 2023
Create an actor
You can add a new actor to the Monolito Movies database using the Monolito Movies API. This document provides instructions on how to make a POST request to create an actor entry.
Endpoint
To create an actor, make a POST request to the following endpoint:
Request
Here's an example of how to make a POST request to create a new actor using JavaScript:
In this example, we create a JavaScript object representing the actor's details and use the fetch
function to make an HTTP POST request to the /actors
endpoint. The API will create a new actor entry based on the provided data.
Response
Upon successful creation, the API will respond with the newly created actor's details in JSON format, including its unique identifier (id
) and any additional information provided during the creation process.
Response Example
You can now create new actor entries in the Monolito Movies database via the API. Next, we'll cover how to update actor information using a PATCH request.