3

I have run into some confusion over the presence of the body attribute in an inbox-item returned by the /inbox method.

When item_type is set to "careers_invitations", the body attribute appears to be missing even if the current filter specifically includes it. According to the documentation:

answer_id              integer, refers to an answer
                       may be absent

body                   string
                       unchanged in unsafe filters

comment_id             integer, refers to a comment
                       may be absent

* emphasis mine

As you can see, some of the other fields "may be absent" but there is no such warning next to body, implying that it will always be present - which appears not to be the case.

Can either the body be added to all items or the documentation updated please?

Note: I have a URL that demonstrates this problem if you are unable to reproduce it - but for privacy reasons, I cannot post it here.

1 Answer 1

3

The documentation was updated sometime in the last 2 years and the API docs (version 2.2) now state that the property may be absent:

absence of body is not body of absence

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .