Type post

Discussion

This type represents the intersection of the Question and Answer types.

It's used in cases where it would be beneficial to mix questions and answers in a response.

Fields

body
string
unchanged in unsafe filters

comments
an array of comments
may be absent

creation_date

down_vote_count
integer

last_activity_date

last_edit_date

link 2.1
string

post_id
integer, refers to a post

post_type
one of question, or answer

score
integer

up_vote_count
integer

Fields marked with are included in the default filter, those marked with are excluded in the default filter.

Examples

Question

{"post_id":1,"post_type":"question","body":"question body","owner":{"user_id":1,"display_name":"Example User","reputation":9001,"user_type":"registered","profile_image":"http://www.gravatar.com/avatar/a007be5a61f6aa8f3e85ae2fc18dd66e?d=identicon&r=PG","link":"http://example.stackexchange.com/users/1/example-user","accept_rate":55},"creation_date":1369141353,"last_activity_date":1369206153,"last_edit_date":1369184553,"score":5,"up_vote_count":7,"down_vote_count":2}

Answer

{"post_id":1,"post_type":"answer","body":"answer body","owner":{"user_id":1,"display_name":"Example User","reputation":9001,"user_type":"registered","profile_image":"http://www.gravatar.com/avatar/a007be5a61f6aa8f3e85ae2fc18dd66e?d=identicon&r=PG","link":"http://example.stackexchange.com/users/1/example-user","accept_rate":55},"creation_date":1369141353,"last_activity_date":1369206153,"last_edit_date":1369184553,"score":5,"up_vote_count":7,"down_vote_count":2}

Methods That Return This Type