Update Admin
To edit the data in the specified collection with the specified id or parameters. When a JSON object is saved, the object properties are automatically added to the collection you specified.
Method : PUT
URL : /admin/(ID)
Body : JSON
{ "username": "username", "pejabat_id": 1}Response : 200 OK
{ "message": "Success edit admin", "status": 200}Response : 422 UNPROCESSABLE CONTENT
{ "error": { "username": ["Username tidak boleh kosong"], "pejabat_id": ["Id tidak boleh kosong"] }}Response : 404 NOT FOUND
Not FoundResponse : 500 ERROR
Internal Server Error