The argument's name in the error message should be 'body', not 'object'.

Thinking of it, maybe 'content' would be an overall better name?