401 Unauthorized : Missing required argument node
You put comma on last parameter "type": "discussion", that doesn't required at the end. javascript, jquery, json doesn't allow comma at end of array. It returns invalid argument.