Syntax Error in Terminal function call

I think you need to pass the actual hostPost to the cli.
It should look like this or similar
dfx canister call canisterName putPost '({id: .., postType: ...})'

1 Like