add the REST API for PUT action