Discussion posts and replies are publicly visible
looks like "deptId" is a required field (either in your DB table or in your CDT) and such has not been provided in the data you're attempting to write.