rest api edit