Skip to main content
POST
/
itsm
/
tickets
Create ITSM Ticket
curl --request POST \
  --url https://api.leen.dev/v1/itsm/tickets \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-CONNECTION-ID: <api-key>' \
  --data '
{
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "type": "<string>",
  "type_id": "<string>",
  "description": "<string>",
  "status": "<string>",
  "priority": "<string>",
  "assigned_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "parent_ticket_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "identifier": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "status": "<string>",
  "vendor_attributes": {
    "id": "<string>",
    "vendor": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "type": "<string>",
    "type_id": "<string>",
    "status": "<string>",
    "priority": "<string>",
    "data": {
      "vendor": "JIRA",
      "id": "<string>",
      "statusCategory": "<string>",
      "customFields": {}
    }
  },
  "active": true,
  "type": "<string>",
  "type_id": "<string>",
  "parent_ticket_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "description": "<string>",
  "due_date": "2023-11-07T05:31:56Z",
  "closed_at": "2023-11-07T05:31:56Z",
  "assigned_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status_updated_at": "2023-11-07T05:31:56Z",
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tags": [
    "<string>"
  ],
  "priority": "<string>",
  "url": "<string>",
  "identifier": "<string>"
}

Authorizations

X-CONNECTION-ID
string
header
required
X-API-KEY
string
header
required

Body

application/json
project_id
string<uuid>
required

Project ID the Ticket belongs to

name
string
required

Name/Title of the Ticket

type
string | null

Type of the Ticket (e.g., Task, Bug, Story)

type_id
string | null

Vendor issue type ID (e.g., Jira issue type ID). Alternative to type — at least one must be provided. Preferred over type when both are given.

description
string | null

Description of the Ticket

status
string | null

Status of the Ticket

priority
string | null

Priority of the Ticket

assigned_user_id
string<uuid> | null

User ID assigned to the Ticket

parent_ticket_id
string<uuid> | null

Parent Ticket ID (for sub-tasks)

identifier
string | null

User-provided tracking identifier (auto-generated from project-type-hash if not provided)

Response

Successful Response

id
string<uuid>
required

Leen's UUID for the Ticket

name
string
required

Name of the Ticket

status
string
required

Status of the Ticket

vendor_attributes
ITSM Ticket Vendor Attributes · object
required

Vendor-specific attributes of the Ticket

active
boolean | null

Whether the Ticket is active

type
string | null

Type of the Ticket (e.g., Epic, Story, Task, Bug)

type_id
string | null

Vendor-specific type ID (e.g., Jira issue type ID)

parent_ticket_id
string<uuid> | null

Parent Ticket ID (for sub-tasks)

description
string | null

Description of the Ticket

due_date
string<date-time> | null

Due date of the Ticket

closed_at
string<date-time> | null

Closing time of the Ticket

assigned_user_id
string<uuid> | null

User ID assigned to the Ticket

created_by_user_id
string<uuid> | null

User ID who created the Ticket

status_updated_at
string<date-time> | null

Last status update time

project_id
string<uuid> | null

Project ID the Ticket belongs to

tags
string[] | null

Tags associated with the Ticket

priority
string | null

Priority of the Ticket

url
string | null

URL of the Ticket

identifier
string | null

User-provided tracking identifier for the Ticket