FieldEx Developer
developer notes

Create Ticket

The TicketCreate API allows you to create a new Ticket. The request body includes subject, description, type, and other relevant information.

Method Endpoint
POST {{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",
    "channel": {
        "name": "as"
    },
    "ticketOwner": {
        "login": "as"
    },
    "ticketStatus": {
        "name": "as"
    },
    "ticketType": {
        "name": "as"
    },
    "department": {
        "name": "as"
    },
    "faultType": {
        "name": "as"
    },
    "resoulutionType": {
        "name": "as"
    },
    "customer": {
        "customerExternalId": "as"
    },
    "assets": {
        "externalId": "as"
    },
    "contact": {
        "externalId": "as"
    },
    "duplicateTicket": {
        "externalId": "as"
    },
    "priority": {
        "name": "as"
    },
    "userGroup": {
        "name": "as"
    },
    "site": {
        "externalId": "as"
    },
    "project": {
        "externalId": "as"
    }
}

Example Response


// 400 Response Code
{
    "entityName": "User",
    "errorKey": "id null",
    "type": "http://www.jhipster.tech/problem/problem-with-message",
    "title": "Invalid ticketOwner login",
    "status": 400,
    "message": "error.id null",
    "params": "User"
}