curl --request POST \
--url https://api.hubapi.com/crm-objects/v1/objects/tickets/batch-create[
{
"name": "source_type",
"value": "TWITTER_DM"
},
{
"name": "status",
"value": "OPEN"
},
{
"name": "created_by",
"value": "496346"
},
{
"name": "subject",
"value": "This is another example ticket"
},
{
"name": "source_type",
"value": "FORM"
},
{
"name": "status",
"value": "CLOSED"
},
{
"name": "created_by",
"value": "496346"
},
{
"name": "subject",
"value": "Yet anotherexample ticket"
},
{
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceId": null
},
{
"versions": [
{
"name": "subject",
"value": "This is another example ticket",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "This is another example ticket",
"timestamp": 1522870759430,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "createdate",
"value": "0",
"timestamp": 0,
"source": "API",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "source_type",
"value": "TWITTER_DM",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "TWITTER_DM",
"timestamp": 1522870759430,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "created_by",
"value": "496346",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "496346",
"timestamp": 1522870759430,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "status",
"value": "OPEN",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "OPEN",
"timestamp": 1522870759430,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceId": null
},
{
"versions": [
{
"name": "subject",
"value": "Yet anotherexample ticket",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "Yet anotherexample ticket",
"timestamp": 1522870759430,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "createdate",
"value": "0",
"timestamp": 0,
"source": "API",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "source_type",
"value": "FORM",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "FORM",
"timestamp": 1522870759430,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "created_by",
"value": "496346",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "496346",
"timestamp": 1522870759430,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "status",
"value": "CLOSED",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "CLOSED",
"timestamp": 1522870759430,
"source": "API",
"sourceId": null
}
]Delete a group of existing tickets. Up to 100 tickets can be deleted in a single request. Note: This action cannot be undone. Deleted tickets cannot be updated and there is no way to restore them
curl --request POST \
--url https://api.hubapi.com/crm-objects/v1/objects/tickets/batch-create[
{
"name": "source_type",
"value": "TWITTER_DM"
},
{
"name": "status",
"value": "OPEN"
},
{
"name": "created_by",
"value": "496346"
},
{
"name": "subject",
"value": "This is another example ticket"
},
{
"name": "source_type",
"value": "FORM"
},
{
"name": "status",
"value": "CLOSED"
},
{
"name": "created_by",
"value": "496346"
},
{
"name": "subject",
"value": "Yet anotherexample ticket"
},
{
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceId": null
},
{
"versions": [
{
"name": "subject",
"value": "This is another example ticket",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "This is another example ticket",
"timestamp": 1522870759430,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "createdate",
"value": "0",
"timestamp": 0,
"source": "API",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "source_type",
"value": "TWITTER_DM",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "TWITTER_DM",
"timestamp": 1522870759430,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "created_by",
"value": "496346",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "496346",
"timestamp": 1522870759430,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "status",
"value": "OPEN",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "OPEN",
"timestamp": 1522870759430,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceId": null
},
{
"versions": [
{
"name": "subject",
"value": "Yet anotherexample ticket",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "Yet anotherexample ticket",
"timestamp": 1522870759430,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "createdate",
"value": "0",
"timestamp": 0,
"source": "API",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "source_type",
"value": "FORM",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "FORM",
"timestamp": 1522870759430,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "created_by",
"value": "496346",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "496346",
"timestamp": 1522870759430,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "status",
"value": "CLOSED",
"timestamp": 1522870759430,
"source": "API",
"sourceVid": []
}
],
"value": "CLOSED",
"timestamp": 1522870759430,
"source": "API",
"sourceId": null
}
]Scope requirements
Successful response - Delete a group of existing tickets
The response is of type object.
Was this page helpful?