Fixed a syntax error in put endpoint