# Service Ticket Tasks API

Create and delete tasks under a Service Ticket, and query task types and statuses.

Type: reference · Mode: develop · Status: unverified

---
Service Ticket Tasks are sub-tasks tracked under a
[Service Ticket](/reference/rest-api/service-ticket/), a to-do or approval step that's
part of resolving the parent ticket.

See [REST API reference](/reference/rest-api/) for the base URL and authentication header
every request below needs.

## GET /v1/service-ticket/task/type

**Get Service Ticket Task Types:** list the available task types.

Query parameters (none mandatory):

<div class="sym-spec-table">

| Parameter | Type | Notes |
| --- | --- | --- |
| `searchText` | string | Free-text filter on type name. |
| `sortOrder` | string | Default `createdAt`. |
| `isAscending` | boolean | Default `true`. |
| `issueTypeId` | integer (int32) | Filter to one task type ID. |

</div>

**Example request:**

```
curl --location 'https://app.symphona.ai/dashboard/api/v1/service-ticket/task/type' \
--header 'apiKey: xxxxxx'
```

**Sample response (200 OK):**

```json
[
  {
    "id": 478,
    "orgId": "8117cd7a-8d74-47c0-951f-c56aaef1c2a3",
    "name": "To-Do",
    "isDefault": true,
    "isVisible": true,
    "createdAt": "2025-02-12T20:42:22.04828",
    "updatedAt": "2025-02-12T20:42:22.048282",
    "relatedIssueCategoryId": 2,
    "relatedIssueCategoryName": "Service Ticket Task",
    "statuses": ["..."],
    "actions": ["..."],
    "tabs": ["OVERVIEW"],
    "parameters": []
  }
]
```

## GET /v1/service-ticket/task/type/{typeId}/status

**Get Service Ticket Task Type Status:** list the statuses for one task type.

<div class="sym-spec-table">

| Parameter | Type | Need | Notes |
| --- | --- | --- | --- |
| `typeId` | string (UUID) | Required (path) | The task type's ID, from the `type` response above. |
| `searchText` | string | Optional | Free-text filter. |
| `sortOrder` | string | Optional | Default `createdAt`. |
| `isAscending` | boolean | Optional | Default `true`. |
| `issueTypeId` | integer (int32) | Optional | The task type's ID. |

</div>

**Example request:**

```
curl --location 'https://app.symphona.ai/dashboard/api/v1/service-ticket/task/type/478/status' \
--header 'apiKey: xxxxxx'
```

**Sample response (200 OK):**

```json
[
  { "name": "Incomplete", "id": 1307 },
  { "name": "Complete", "id": 1308 }
]
```

## POST /v1/service-ticket/{serviceTicketID}/task

**Create Service Ticket Task:** create a new task under an existing Service Ticket.

<div class="sym-spec-table">

| Parameter | Type | Need | Notes |
| --- | --- | --- | --- |
| `serviceTicketID` | string (UUID) | Required (path) | The parent Service Ticket's ID. |

</div>

Request body (none mandatory):

<div class="sym-spec-table">

| Field | Type | Notes |
| --- | --- | --- |
| `id` | string (UUID) | Unique identifier for the task. |
| `parentId` | string (UUID) | Parent issue identifier, if applicable. |
| `organizationId` | string | Owning organization. |
| `displayName` | string | Task display name. |
| `processDisplayName` | string | Name of the associated Process, if any. |
| `description` | string | Task description. |
| `issueCategoryId` | integer | Category ID. |
| `issueTypeId` | integer | Type ID. |
| `issueStatusId` | integer | Status ID. |
| `createdBy` | string | `PROCESS`, `USER`, or `AGENT`. |
| `resolvedBy` | string | `PROCESS`, `USER`, or `AGENT`. |
| `priority` | string | `HIGHEST`, `HIGH`, `MEDIUM`, `LOW`, `LOWEST`, or `NONE`. |
| `assignedByUserId` | string | User who assigned the task. |
| `assignedToUserId` | string | User the task is assigned to. |
| `availableToUsers` | array of strings (UUID) | Users who can view the task. |
| `availableToUserGroups` | array of strings (UUID) | User Groups who can view the task. |
| `dueDate` | string (date-time) | Due date. |
| `resolvedAt` | string (date-time) | Resolved timestamp. |
| `additionalFields` | object | Custom fields on the task. |
| `parameterGroups` | array of objects | Parameter groups on the task. |
| `relatedEntities` | array of objects | Related tasks or issues. |
| `attachmentFiles` | array of strings | Attached file references. |

</div>

**Example request:**

```
curl --location 'https://app.symphona.ai/dashboard/api/v1/service-ticket/bd7fdf59-0fd1-43b5-8ee1-b4ebd1893ea5/task' \
--header 'apiKey: xxxxxx' \
--header 'Content-Type: application/json' \
--data '{
  "displayName": "Demo Created Task",
  "description": "This is a demo created task for the documentation",
  "priority": "LOW"
}'
```

**Sample response (200 OK):**

```json
[
  {
    "id": "3deb2118-dbd4-4b14-83af-d95db70866ec",
    "parent": "bd7fdf59-0fd1-43b5-8ee1-b4ebd1893ea5",
    "displayName": "Demo Created Task",
    "description": "This is a demo created task for the documentation",
    "category": "Service Ticket Task",
    "issueType": "Approval",
    "status": "Pending Action",
    "createdAt": "2025-04-17T05:12:19.986874897",
    "updatedAt": "2025-04-17T05:12:19.986879065",
    "relatedEntities": [],
    "createdBy": "USER",
    "priority": "LOW"
  }
]
```

## DELETE /v1/service-ticket/task/{taskId}

**Delete Service Ticket Task:** remove a task from the system.

<div class="sym-spec-table">

| Parameter | Type | Need | Notes |
| --- | --- | --- | --- |
| `taskId` | string (UUID) | Required | The task's unique identifier. |

</div>

**Example request:**

```
curl --location --request DELETE 'https://app.symphona.ai/dashboard/api/v1/service-ticket/task/3deb2118-dbd4-4b14-83af-d95db70866ec' \
--header 'apiKey: xxxxxx'
```

**Sample response:** `200 OK`, "Issues deleted successfully".