Update Author

Update Author

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

Body : JSON

{
	"id": 289,
	"name": "New Author Edit",
	"link": "New Author Link Edit",
	"image": "Image Author Edit",
	"born": "Born Author Edit",
	"web": "Web Author Edit",
	"bio": "Bio Author Edit"
}
id*Required
number

Author ID.

name*Required
string

Name of actor.

link
string

Author Goodread link

image
string

Author Image URL

born
string

Author Location

web
string

Author Web URL

bio
string

Author bio

Response : 200 - OK

{
	"message": "Success update author"
}

Response : 422 - Unprocessable Content

{
	"error": "Name required"
}

Response : 404 - Not Found

Not Found

Response : 500 - Server Error

Internal Server Error