FieldEx Developer
developer notes

Patch a Ticket

The PartialUpdate API allows you to update a subset of the fields in the ticket records. This is useful in cases where you need to update a ticket without having to update all of the fields.

Method Endpoint
PATCH {{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": "ticketTest",
    "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": "ticket2"
    },
    "priority": {
        "name": "Urgent"
    },
    "userGroup": {
        "name": "asaS"
    },
    "site": {
        "externalId": "1"
    },
    "project": {
        "externalId": "123"
    }
}

Example Response

// 400 Response Code
{
    "message": "ticket not found with ext : ticketTest"
}