The `hs_pipeline` parameter that you set when creating ticket via this endpoint: Create a ticket is referring to the `pipelineId` returned on this endpoint: Get all pipelines for a specified object type and the `hs_pipeline_stage` is referring to the `stageId`.
E.g. I send a GET request to Get all pipelines for a specified object type on your portal and I'm able to note that the Customer Service pipeline has a pipelineId - 1091395 and the stage `New Customer Email (Waiting on us)` has a stageId - 1091398.
As such if you're looking to create a ticket using the Create a ticket endpoint with ticket under pipeline Customer Service and ticket stage as `New Customer Email (Waiting on us)`, you pass the following body:
How to create a ticket with "hs_pipeline" property other than "0" using the API
SOLVE
Hello WendyGoh,
Thanks for your reply.
I want to create a ticket for a pipeline which is not the default one ("0").
The values that I recieved in the crm_pipeline in the "pipelineId" attribute could not be used to create a new ticket (I recived the error: "Property values were not valid" when I used the "pipelineId" attribute that was returned from the crm_pipeline API).
When I used the value "0" for the "hs_pipeline" property to create a ticket everthing worked fine.
The `hs_pipeline` parameter that you set when creating ticket via this endpoint: Create a ticket is referring to the `pipelineId` returned on this endpoint: Get all pipelines for a specified object type and the `hs_pipeline_stage` is referring to the `stageId`.
E.g. I send a GET request to Get all pipelines for a specified object type on your portal and I'm able to note that the Customer Service pipeline has a pipelineId - 1091395 and the stage `New Customer Email (Waiting on us)` has a stageId - 1091398.
As such if you're looking to create a ticket using the Create a ticket endpoint with ticket under pipeline Customer Service and ticket stage as `New Customer Email (Waiting on us)`, you pass the following body: