curl --request POST \
--url https://api.hubapi.com/crm-objects/v1/objects/tickets/batch-read[
{
"ids": [
177769,
176601
]
},
{
"objectType": "TICKET",
"portalId": 62515,
"objectId": 176601,
"properties": {},
"isDeleted": false
},
{
"objectType": "TICKET",
"portalId": 62515,
"objectId": 177769,
"properties": {},
"isDeleted": false
},
{
"ids": [
177769,
176601
]
},
{
"versions": [
{
"name": "subject",
"value": "This is an example ticket",
"timestamp": 1522868974802,
"source": "API",
"sourceVid": []
}
],
"value": "This is an example ticket",
"timestamp": 1522868974802,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "created_by",
"value": "496346",
"timestamp": 1522868974802,
"source": "API",
"sourceVid": []
}
],
"value": "496346",
"timestamp": 1522868974802,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "content",
"value": "Here are the details of the ticket.",
"timestamp": 1522868974802,
"source": "API",
"sourceVid": []
}
],
"value": "Here are the details of the ticket.",
"timestamp": 1522868974802,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "subject",
"value": "This is my first ticket!",
"timestamp": 1522862571921,
"source": "API",
"sourceVid": []
}
],
"value": "This is my first ticket!",
"timestamp": 1522862571921,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "created_by",
"value": "496346",
"timestamp": 1522862571921,
"source": "API",
"sourceVid": []
}
],
"value": "496346",
"timestamp": 1522862571921,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "content",
"value": "Here's the content of the ticket.",
"timestamp": 1522862571921,
"source": "API",
"sourceVid": []
}
],
"value": "Here's the content of the ticket.",
"timestamp": 1522862571921,
"source": "API",
"sourceId": null
}
]Create a group of tickets. Up to 100 tickets can be created in a single request. The request body will be an array, with each entry being a list of ticket properties you want to set for each new ticket. You must set the ticket pipeline and stage when creating a new ticket. Please see the example for more details.
curl --request POST \
--url https://api.hubapi.com/crm-objects/v1/objects/tickets/batch-read[
{
"ids": [
177769,
176601
]
},
{
"objectType": "TICKET",
"portalId": 62515,
"objectId": 176601,
"properties": {},
"isDeleted": false
},
{
"objectType": "TICKET",
"portalId": 62515,
"objectId": 177769,
"properties": {},
"isDeleted": false
},
{
"ids": [
177769,
176601
]
},
{
"versions": [
{
"name": "subject",
"value": "This is an example ticket",
"timestamp": 1522868974802,
"source": "API",
"sourceVid": []
}
],
"value": "This is an example ticket",
"timestamp": 1522868974802,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "created_by",
"value": "496346",
"timestamp": 1522868974802,
"source": "API",
"sourceVid": []
}
],
"value": "496346",
"timestamp": 1522868974802,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "content",
"value": "Here are the details of the ticket.",
"timestamp": 1522868974802,
"source": "API",
"sourceVid": []
}
],
"value": "Here are the details of the ticket.",
"timestamp": 1522868974802,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "subject",
"value": "This is my first ticket!",
"timestamp": 1522862571921,
"source": "API",
"sourceVid": []
}
],
"value": "This is my first ticket!",
"timestamp": 1522862571921,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "created_by",
"value": "496346",
"timestamp": 1522862571921,
"source": "API",
"sourceVid": []
}
],
"value": "496346",
"timestamp": 1522862571921,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "content",
"value": "Here's the content of the ticket.",
"timestamp": 1522862571921,
"source": "API",
"sourceVid": []
}
],
"value": "Here's the content of the ticket.",
"timestamp": 1522862571921,
"source": "API",
"sourceId": null
}
]Scope requirements
Successful response - Create a group of tickets
The response is of type object.
Was this page helpful?