curl --request PUT \
--url https://api.hubapi.com/crm-objects/v1/objects/tickets/{id}[
{
"name": "hs_ticket_priority",
"value": "HIGH"
},
{
"name": "content",
"value": "This is now an updated ticket marked as high priority."
},
{
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceId": null
},
{
"versions": [
{
"name": "hs_ticket_priority",
"value": "HIGH",
"timestamp": 1560173981204,
"source": "API",
"sourceVid": []
}
],
"value": "HIGH",
"timestamp": 1560173981204,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "content",
"value": "This is now an updated ticket marked as high priority.",
"timestamp": 1522872562016,
"source": "API",
"sourceVid": []
}
],
"value": "This is now an updated ticket marked as closed.",
"timestamp": 1522872562016,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "status",
"value": "CLOSED",
"timestamp": 1522872562016,
"source": "API",
"sourceVid": []
},
{
"name": "status",
"value": "CLOSED",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "CLOSED",
"timestamp": 1522872562016,
"source": "API",
"sourceId": null
}
]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}[
{
"name": "hs_ticket_priority",
"value": "HIGH"
},
{
"name": "content",
"value": "This is now an updated ticket marked as high priority."
},
{
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceId": null
},
{
"versions": [
{
"name": "hs_ticket_priority",
"value": "HIGH",
"timestamp": 1560173981204,
"source": "API",
"sourceVid": []
}
],
"value": "HIGH",
"timestamp": 1560173981204,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "content",
"value": "This is now an updated ticket marked as high priority.",
"timestamp": 1522872562016,
"source": "API",
"sourceVid": []
}
],
"value": "This is now an updated ticket marked as closed.",
"timestamp": 1522872562016,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "status",
"value": "CLOSED",
"timestamp": 1522872562016,
"source": "API",
"sourceVid": []
},
{
"name": "status",
"value": "CLOSED",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "CLOSED",
"timestamp": 1522872562016,
"source": "API",
"sourceId": null
}
]Scope requirements
Successful response - Get all tickets from a portal, up to 100 per request
The response is of type object.
Was this page helpful?