Fixed the promote/demote buttons to work with HTTP PUT