Hi all,
I’m not sure if it’s just me but I’m finding the v3 documentation really confusing.
I’m trying to make an API request to create a ticket. This page shows the endpoint to call and an example JSON body to send to that endpoint, ie:
{
“property_number”: “17”,
“property_dropdown”: “choice_b”,
“property_radio”: “option_1”,
“property_string”: “value”,
“property_multiple_checkboxes”: “chocolate;strawberry”,
“property_checkbox”: “false”,
“property_date”: “1572480000000”
}
I assume these are all custom properties so you can pass what you like here? Do you have to append “property_” to the front of each one or are these just examples?
More importantly, on making the request I get an error:
Some required properties were not set.",“correlationId”:“xxxxx”,“context”:{“properties”:[“hs_pipeline_stage”]},“category”:“VALIDATION_ERROR”}
The overview page says “When creating a new ticket, you must set the hs_pipeline_stage property.” but there is no mention of how to structure the request to include those values and searching the docs returns no results?
So my questions are:
1. How do a structure a valid request to create a ticket?
2. Why does this example request not just include all the required properties including correlationId and hs_pipeline_stage so you can just hit that page and get what you need without having to go through all the rest of the docs to fill in the other part of the picture?
Many thanks for any help you can provide.
Adam