changed parameter ,this was the error

I was trying to send an object instead of a string. The post was
getting an error.