FieldEx Logo Black
FieldEx Developer
developer notes

Update Ticket

The TicketUpdate API allows you to update an existing Ticket. The request body includes subject, description, type, and other relevant information.

Method Endpoint
PUT {{endpoint}}/api/ext/tickets

‍

Headers

‍

Key Value
Content-Type application/json
Authorization Bearer{{token}}

‍

Example Request

‍

{
    "subject": "Test Ticket created from custella wit site",
    "description": "test",
    "type": "incident",
    "status": "open",
    "externalId": "ticketTest123",
    "channel": {
        "name": "Phone"
    },
    "ticketOwner": {
        "login": "tharindu@lavalabs.net"
    },
    "ticketStatus": {
        "name": "New"
    },
    "ticketType": {
        "name": "Inquiry"
    },
    "department": {
        "name": "Sales"
    },
    "faultType": {
        "name": "Lost"
    },
    "resoulutionType": {
        "name": "sdfsd"
    },
    "customer": {
        "customerExternalId": "ARFA1"
    },
    "assets": {
        "externalId": "efefg"
    },
    "contact": {
        "externalId": "contact1"
    },
    "duplicateTicket": {
        "externalId": "ticketTest"
    },
    "priority": {
        "name": "Urgent"
    },
    "userGroup": {
        "name": "asaS"
    },
    "site": {
        "externalId": "1"
    },
    "project": {
        "externalId": "123"
    }
}

‍

Example Response

‍


// 400 Response Code
{
    "type": "http://www.jhipster.tech/problem/problem-with-message",
    "title": "Internal Server Error",
    "status": 500,
    "detail": "Ticket not found with ticket external Id : ticketTest123",
    "path": "/custella-0.0.1-SNAPSHOT/api/ext/tickets",
    "message": "error.http.500"
}

‍