The problem type is defaulting to id: 1 when the ticket is created. I need it to be 68, any thoughts on why this is happening?
When creating the ticket
(json)
{
"reportDateUtc": "2013-12-11T14:15:16Z",
"subject": "This is a test ticket",
"detail": "I am testing from a CURL Shell script",
"assignToCreatingTech": true,
"sendEmail": true,
"emailTech": true,
"problemType": {
"type": "RequestType",
"id": 68
},
"location": {
"type": "Location",
"id": 10
},
"clientReporter": {
"type": "ClientReporter",
"id": 3490
},
"statusType": {
"type": "StatusType",
"id": 1
},
"department": {
"type": "Department",
"id": 40
},
"priorityType": {
"type": "PriorityType",
"id": 1
},
}
(command)
curl -X POST -d @ticket.json "helpdesk/.../Tickets REMOVED>&apiKey=<APIKEY REMOVED>"
(returned)
{"id":95496,"type":"Ticket","lastUpdated":"2019-05-09T07:25:07Z","locationId":10,"statusTypeId":1,"subject":"This is a test ticket"}
When retrieving the ticket:
(command)
curl "helpdesk/.../95496 REMOVED>"
(returned json)
{
"id": 95496,
"type": "Ticket",
"bccAddresses": null,
"ccAddressesForTech": null,
"closeDate": null,
"departmentId": 40,
"lastUpdated": "2019-05-09T07:18:46Z",
"locationId": 10,
"priorityTypeId": 5,
"room": null,
"statusTypeId": 1,
"subject": "This is a test ticket",
"clientReporter": {
"id": 3490,
"type": "Client",
"email": "<REMOVED>",
"firstName": "JEM System ",
"lastName": "Mail",
"notes": null,
"phone": null,
"phone2": null,
"department": null,
"location": {
"id": 23,
"type": "Location",
"address": "<REMOVED>",
"city": "<REMOVED>",
"locationName": "<REMOVED>",
"postalCode": "<REMOVED>",
"state": "CT"
},
"room": null,
"companyName": "<REMOVED>",
"username": "<REMOVED>"
},
"clientTech": {
"id": 72,
"type": "Tech",
"email": "<REMOVED>",
"displayName": "Jessica Kennedy"
},
"department": {
"id": 40,
"type": "Department",
"name": "200"
},
"location": {
"id": 10,
"type": "Location",
"address": null,
"city": null,
"locationName": "<REMOVED>",
"postalCode": null,
"state": null,
"priorityTypes": [],
"defaultPriorityTypeId": null
},
"prioritytype": {
"id": 5,
"type": "PriorityType",
"priorityTypeName": "Medium-Low"
},
"problemtype": {
"id": 1,
"type": "RequestType",
"detailDisplayName": "Desktops and Laptops"
},
"statustype": {
"id": 1,
"type": "StatusType",
"statusTypeName": "Open"
},
"techGroupLevel": {
"id": 17,
"type": "TechGroupLevel",
"level": 1,
"levelName": "General IT Support Level 1",
"shortLevelName": "Level 1"
},
"assets": [],
"detail": "I am testing from a CURL Shell script",
"reportDateUtc": "2013-12-11T14:15:16Z",
"displayDueDate": "2013-12-16T09:15:00Z",
"displayClient": "JEM System Mail",
"emailClient": true,
"emailTech": true,
"emailTechGroupLevel": false,
"emailGroupManager": false,
"emailCc": false,
"emailBcc": false,
"needsApproval": false,
"ticketEditable": true,
"techId": 72,
"levelNumber": "1",
"clientId": 3490,
"flaggedByTech": false,
"isPublic": true,
"canEscalate": true,
"bookmarkableLink": "">helpdesk/.../view
"isDeleted": false,
"notes": [],
"ticketCustomFields": [],
"enabledStatusTypes": [
{
"id": 13,
"type": "StatusType",
"statusTypeName": "Transferred"
},
{
"id": 1,
"type": "StatusType",
"statusTypeName": "Open"
},
{
"id": 2,
"type": "StatusType",
"statusTypeName": "In Progress"
},
{
"id": 6,
"type": "StatusType",
"statusTypeName": "On Hold"
},
{
"id": 12,
"type": "StatusType",
"statusTypeName": "Pending approval"
},
{
"id": 11,
"type": "StatusType",
"statusTypeName": "Awaiting Client Response"
},
{
"id": 9,
"type": "StatusType",
"statusTypeName": "Awaiting Parts"
},
{
"id": 7,
"type": "StatusType",
"statusTypeName": "On Order"
},
{
"id": 10,
"type": "StatusType",
"statusTypeName": "Project in Progress"
},
{
"id": 5,
"type": "StatusType",
"statusTypeName": "Resolved"
},
{
"id": 3,
"type": "StatusType",
"statusTypeName": "Closed"
},
{
"id": 4,
"type": "StatusType",
"statusTypeName": "Cancelled"
}
],
"attachments": []
}