Create Director

Create Director

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/director

Body : JSON

{
	"name": "New Director",
	"image_url": "https://www.themoviedb.org/t/p/w300_and_h450_bestv2/82W339V8turXUdaCajqOyekxhmD.jpg",
	"gender": 1,
	"biography": "New Director Bio",
	"country_id": 1
}
nameRequired
string

Name of director.

image_url
string

Image URL of director.

gender
integer

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

biography
string

Biography of director.

country_id
integer

Country ID of director

Response : 200 - OK

{
	"message": "Success add director"
}

Response : 422 - Unprocessable Content

{
	"error": "Name required"
}

Response : 500 - Server Error

Internal Server Error