Update Director

Update Director

To edit 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 : PUT

URL : /api/director?id=(id)

Body : JSON

{
	"name": "New Director Edit",
	"image_url": "https://www.themoviedb.org/t/p/w300_and_h450_bestv2/82W339V8turXUdaCajqOyekxhmD.jpg",
	"gender": 1,
	"biography": "New Director Bio Edit",
	"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 update director"
}

Response : 422 - Unprocessable Content

{
  "error": "Name required"
}

Response : 404 - Not Found

Not Found

Response : 500 - Server Error

Internal Server Error