Creating a ticket by HubSpot API V1 failed

Hello,

What is wrong with the following API that I ran from Linux shell?

curl ‘https://api.hubapi.com/crm-objects/v1/objects/tickets/’ -H “Authorization: Bearer XX” -H “content-type: application/json” -X POST -d ‘[{“name”:“subject”,“value”:“test”},{“name”:“hs_pipeline”,“value”:“0”},{“name”:“hs_pipeline_stage”,“value”:“1”},{“name”:“content”,“value”:“test1”}]’

I recieved error code 500.

Found the reason for this issue, the application did not have tickets privilages.