fix snippet method in post to add default value of 300