This is what I use when creating a category - I tend to use the form data however
Another thing to check is your error logs - this helps you along the path to be able to identify any calls are incorrect