added api_key to the front-end item update code