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",
  "type": "<string>",
  "name": "<string>",
  "description": "<string>",
  "status": "<string>",
  "priority": "<string>",
  "assigned_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "parent_ticket_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "<string>",
  "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>",
    "status": "<string>",
    "priority": "<string>",
    "data": {
      "vendor": "JIRA",
      "id": "<string>",
      "statusCategory": "<string>",
      "customFields": {}
    }
  },
  "active": true,
  "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>"
}

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

type
string
required

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

name
string
required

Name/Title of the Ticket

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)

Response

Successful Response

id
string<uuid>
required

Leen's UUID for the Ticket

type
string
required

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

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

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