Create Actor

Create Actor

To create the data in the specified collection with the specified parameters. When a JSON object is saved, the object properties are automatically added to the collection you specified.

Method : POST

URL : /api/actor

Body : JSON

{
	"name": "New Actor",
	"image_url": "https://www.themoviedb.org/t/p/w300_and_h450_bestv2/8qBylBsQf4llkGrWR3qAsOtOU8O.jpg",
	"gender": 1,
	"biography": "New Actor Bio",
	"birthday": "1980-05-05",
	"instagram_url": "https://instagram.com/",
	"twitter_url": "https://twitter.com/",
	"country_id": 1
}
nameRequired
string

Name of actor.

image_url
string

Image URL of actor.

gender
integer

Gender of actor. 1 (Male) | 2 (Female)

biography
string

Biography of actor.

birthday
string (date)

Birthday of actor.

instagram_url
string

Instagram URL of actor

twitter_url
string

Twitter URL of actor

country_id
integer

Country ID of actor

Response : 200 - OK

{
	"message": "Success add actors"
}

Response : 422 - Unprocessable Content

{
	"error": "Name required"
}

Response : 500 - Server Error

Internal Server Error