freshworks · Schema

TicketCreate

Properties

Name Type Description
subject string Subject of the ticket.
description string HTML content of the ticket description.
email string Email of the requester.
phone string Phone number of the requester.
requester_id integer ID of the requester.
status integer Status of the ticket.
priority integer Priority of the ticket.
source integer Channel through which the ticket was created.
type string Type of the ticket.
responder_id integer ID of the agent to assign.
group_id integer ID of the group to assign.
product_id integer ID of the associated product.
company_id integer ID of the associated company.
tags array Tags to associate with the ticket.
cc_emails array Email addresses to CC on the ticket.
custom_fields object Key-value pairs for custom fields.
parent_id integer ID of the parent ticket to create a child ticket.
View JSON Schema on GitHub

JSON Schema

freshworks-ticketcreate-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TicketCreate",
  "title": "TicketCreate",
  "type": "object",
  "required": [
    "subject",
    "description"
  ],
  "properties": {
    "subject": {
      "type": "string",
      "description": "Subject of the ticket."
    },
    "description": {
      "type": "string",
      "description": "HTML content of the ticket description."
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "Email of the requester."
    },
    "phone": {
      "type": "string",
      "description": "Phone number of the requester."
    },
    "requester_id": {
      "type": "integer",
      "description": "ID of the requester."
    },
    "status": {
      "type": "integer",
      "description": "Status of the ticket.",
      "enum": [
        2,
        3,
        4,
        5
      ],
      "default": 2
    },
    "priority": {
      "type": "integer",
      "description": "Priority of the ticket.",
      "enum": [
        1,
        2,
        3,
        4
      ],
      "default": 1
    },
    "source": {
      "type": "integer",
      "description": "Channel through which the ticket was created."
    },
    "type": {
      "type": "string",
      "description": "Type of the ticket."
    },
    "responder_id": {
      "type": "integer",
      "description": "ID of the agent to assign."
    },
    "group_id": {
      "type": "integer",
      "description": "ID of the group to assign."
    },
    "product_id": {
      "type": "integer",
      "description": "ID of the associated product."
    },
    "company_id": {
      "type": "integer",
      "description": "ID of the associated company."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Tags to associate with the ticket."
    },
    "cc_emails": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "email"
      },
      "description": "Email addresses to CC on the ticket."
    },
    "custom_fields": {
      "type": "object",
      "additionalProperties": true,
      "description": "Key-value pairs for custom fields."
    },
    "parent_id": {
      "type": "integer",
      "description": "ID of the parent ticket to create a child ticket."
    }
  }
}