PUT
/
crm-objects
/
v1
/
objects
/
tickets
/
{id}
Update a ticket
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"

Response

200 - application/json

Successful response - Get all tickets from a portal, up to 100 per request

The response is of type object.