curl --request PUT \
--url https://api.hubapi.com/crm-objects/v1/objects/tickets/{id}
"\nExample PUT URL:\nhttps://api.hubapi.com/crm-objects/v1/objects/tickets/176602\n\nExample PUT data (updating two properties):\n[\n {\n \"name\": \"hs_ticket_priority\",\n \"value\": \"HIGH\"\n },\n {\n \"name\": \"content\",\n \"value\": \"This is now an updated ticket marked as high priority.\"\n }\n]\n\n\nExample response:\n{\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 176602,\n \"properties\": {\n \"hs_lastmodifieddate\": {\n \"versions\": [\n {\n \"name\": \"hs_lastmodifieddate\",\n \"value\": \"0\",\n \"timestamp\": 0,\n \"source\": \"CALCULATED\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"0\",\n \"timestamp\": 0,\n \"source\": \"CALCULATED\",\n \"sourceId\": null\n },\n \"hs_ticket_priority\": {\n \"versions\": [\n {\n \"name\": \"hs_ticket_priority\",\n \"value\": \"HIGH\",\n \"timestamp\": 1560173981204,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"HIGH\",\n \"timestamp\": 1560173981204,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"content\": {\n \"versions\": [\n {\n \"name\": \"content\",\n \"value\": \"This is now an updated ticket marked as high priority.\",\n \"timestamp\": 1522872562016,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"This is now an updated ticket marked as closed.\",\n \"timestamp\": 1522872562016,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"status\": {\n \"versions\": [\n {\n \"name\": \"status\",\n \"value\": \"CLOSED\",\n \"timestamp\": 1522872562016,\n \"source\": \"API\",\n \"sourceVid\": []\n },\n {\n \"name\": \"status\",\n \"value\": \"CLOSED\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"CLOSED\",\n \"timestamp\": 1522872562016,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"isDeleted\": false\n}\n"
Get all tickets from a portal, up to 100 per request. By default you will only get a few system fields for any tickets in the response. If you want to get specific properties, you’ll need to use the &properties= parameter in the request URL. The parameter can be included multiple times, so you can request any properties you may need. See the parameter descriptions below and the examples for more details.
curl --request PUT \
--url https://api.hubapi.com/crm-objects/v1/objects/tickets/{id}
"\nExample PUT URL:\nhttps://api.hubapi.com/crm-objects/v1/objects/tickets/176602\n\nExample PUT data (updating two properties):\n[\n {\n \"name\": \"hs_ticket_priority\",\n \"value\": \"HIGH\"\n },\n {\n \"name\": \"content\",\n \"value\": \"This is now an updated ticket marked as high priority.\"\n }\n]\n\n\nExample response:\n{\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 176602,\n \"properties\": {\n \"hs_lastmodifieddate\": {\n \"versions\": [\n {\n \"name\": \"hs_lastmodifieddate\",\n \"value\": \"0\",\n \"timestamp\": 0,\n \"source\": \"CALCULATED\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"0\",\n \"timestamp\": 0,\n \"source\": \"CALCULATED\",\n \"sourceId\": null\n },\n \"hs_ticket_priority\": {\n \"versions\": [\n {\n \"name\": \"hs_ticket_priority\",\n \"value\": \"HIGH\",\n \"timestamp\": 1560173981204,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"HIGH\",\n \"timestamp\": 1560173981204,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"content\": {\n \"versions\": [\n {\n \"name\": \"content\",\n \"value\": \"This is now an updated ticket marked as high priority.\",\n \"timestamp\": 1522872562016,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"This is now an updated ticket marked as closed.\",\n \"timestamp\": 1522872562016,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"status\": {\n \"versions\": [\n {\n \"name\": \"status\",\n \"value\": \"CLOSED\",\n \"timestamp\": 1522872562016,\n \"source\": \"API\",\n \"sourceVid\": []\n },\n {\n \"name\": \"status\",\n \"value\": \"CLOSED\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"CLOSED\",\n \"timestamp\": 1522872562016,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"isDeleted\": false\n}\n"
Successful response - Get all tickets from a portal, up to 100 per request
The response is of type object
.
Was this page helpful?