Add type to the post data.