> This is a page from the ElevenLabs documentation. For an index of the documentation, fetch https://elevenlabs.io/docs/llms.txt.

# एजेंट कन्वर्सेशन टिकट अपडेट करें

PATCH https://api.elevenlabs.io/v1/convai/triage-tickets/{agentqa_ticket_id}
Content-Type: application/json

एजेंट समस्या का शीर्षक, टिप्पणी, स्थिति, प्राथमिकता और/या assignee अपडेट करें। इसके लिए समस्या वाले एजेंट का viewer access ज़रूरी है।

Reference: https://elevenlabs.io/docs/eleven-agents/api-reference/issues/update

## Servers

- `https://api.elevenlabs.io` (Production, default)
- `https://api.us.elevenlabs.io` (Production US)
- `https://api.eu.residency.elevenlabs.io` (Production EU)
- `https://api.in.residency.elevenlabs.io` (Production India)
- `https://api.sg.residency.elevenlabs.io` (Production Singapore)

## Request

### Path parameters

- `agentqa_ticket_id` (string, required)

### Body (application/json)

This endpoint expects an object.

- `title` (string, optional) — दिया गया होने पर agent issue का शीर्षक अपडेट करता है। अपरिवर्तित रखने के लिए छोड़ दें।
- `qa_comment` (string, optional) — दिया गया होने पर agent issue का विवरण अपडेट करता है। अपरिवर्तित रखने के लिए छोड़ दें।
- `status` (enum, optional) — दिया गया होने पर agent issue का status अपडेट करता है। अपरिवर्तित रखने के लिए छोड़ दें।
  - Allowed values: `open`, `in_progress`, `resolved`, `cancelled`, `merged`
- `assignee_user_id` (string, optional) — दिया गया होने पर, यह अपडेट करता है कि इस एजेंट समस्या को हल करने की ज़िम्मेदारी किसकी है। वह एजेंट के लिए कम-से-कम व्यूअर एक्सेस वाला वर्कस्पेस सदस्य होना चाहिए। असाइनमेंट हटाने के लिए null दें। बिना बदलाव के छोड़ने के लिए इसे न दें।
- `priority` (enum, optional) — दिया गया होने पर agent issue को कितनी तत्काल ध्यान देने की आवश्यकता है, इसे अपडेट करता है। इसे साफ़ करने के लिए null दें। अपरिवर्तित रखने के लिए छोड़ दें।
  - Allowed values: `low`, `medium`, `high`, `urgent`

## Response

### 200

सफल रिस्पॉन्स

- `agentqa_ticket_id` (string, required)
- `workspace_id` (string, required)
- `owner_user_id` (string, required)
- `agent_id` (string, required)
- `needs_clustering` (boolean, required)
- `labels` (list of string, required)
- `conversation_ids` (list of string, required)
- `ticket_comments` (list of TicketCommentResponseModel, required)
- `turn_comments` (list of TurnCommentResponseModel, required)
- `status` (enum, required)
  - Allowed values: `open`, `in_progress`, `resolved`, `cancelled`, `merged`
- `priority_changes` (list of TicketPriorityChangeResponseModel, required)
- `status_changes` (list of TicketStatusChangeResponseModel, required)
- `source` (enum, required)
  - Allowed values: `qa`, `agent`, `manual`
- `created_at_unix_secs` (integer, required)
- `updated_at_unix_secs` (integer, required)
- `title` (string, optional) — एजेंट समस्या के लिए एक-पंक्ति का शीर्षक। None केवल उन समस्याओं के लिए है जो शीर्षकों के आने से पहले बनाई गई थीं।
- `first_seen_unix_secs` (integer, optional)
- `last_seen_unix_secs` (integer, optional)
- `qa_comment` (string, optional)
- `priority` (enum, optional)
  - Allowed values: `low`, `medium`, `high`, `urgent`
- `merged_into_ticket_id` (string, optional) — वह एजेंट समस्या जिसमें इसे मर्ज किया गया था; इसकी स्थिति 'merged' होने पर सेट किया जाता है।
- `assignee_user_id` (string, optional)
- `search_match` (TicketSearchMatchResponseModel, optional) — जहाँ सूची की `search` क्वेरी मैच हुई। केवल खोजी गई सूचियों पर सेट होता है।
- `issue_type` (any, optional, deprecated) — Always null. Issue types are labels, written as `issue_type:<value>`.

## Errors

### 422 Triage Tickets Update Request Unprocessable Entity Error

वैलिडेशन एरर

- `detail` (list of ValidationError, optional)

## Types

### TicketCommentResponseModel

- `comment` (string, required)
- `created_at_unix_secs` (integer, required)
- `owner_user_id` (string, optional)

### TurnCommentResponseModel

- `turn_index` (integer, required)
- `comment` (string, required)
- `created_at_unix_secs` (integer, required)
- `owner_user_id` (string, optional)

### TicketPriorityChangeResponseModel

- `changed_by_user_id` (string, required)
- `changed_at_unix_secs` (integer, required)
- `priority` (enum, optional)
  - Allowed values: `low`, `medium`, `high`, `urgent`

### TicketStatusChangeResponseModel

- `status` (enum, required)
  - Allowed values: `open`, `in_progress`, `resolved`, `cancelled`, `merged`
- `changed_at_unix_secs` (integer, required)
- `changed_by_user_id` (string, optional)

### TicketSearchMatchResponseModel

- `field` (enum, required) — एजेंट की समस्या के कौन-से टेक्स्ट मेल खाए।
  - Allowed values: `title`, `description`, `comment`, `turn_comment`
- `snippet` (string, required) — मैच के आसपास का व्हाइटस्पेस-संकुचित अंश, जहाँ काटा गया है वहाँ दीर्घविराम के साथ।
- `highlight_start` (integer, required) — `snippet` में मैच का ऑफ़सेट।
- `highlight_end` (integer, required) — `snippet` में मैच का एक्सक्लूसिव एंड ऑफ़सेट।
- `turn_index` (integer, optional) — टिप्पणी वाला टर्न, जो `field` के 'turn_comment' होने पर सेट किया जाता है।

### ValidationError

- `loc` (list of ValidationErrorLocItem, required)
- `msg` (string, required)
- `type` (string, required)

### ValidationErrorLocItem

- string
- integer

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "agentqa_ticket_id": "agentqa_ticket_id",
  "workspace_id": "workspace_id",
  "owner_user_id": "owner_user_id",
  "agent_id": "agent_id",
  "needs_clustering": true,
  "labels": [
    "labels"
  ],
  "conversation_ids": [
    "conversation_ids"
  ],
  "ticket_comments": [
    {
      "comment": "comment",
      "created_at_unix_secs": 1,
      "owner_user_id": "owner_user_id"
    }
  ],
  "turn_comments": [
    {
      "turn_index": 1,
      "comment": "comment",
      "created_at_unix_secs": 1,
      "owner_user_id": "owner_user_id"
    }
  ],
  "status": "open",
  "priority_changes": [
    {
      "changed_by_user_id": "changed_by_user_id",
      "changed_at_unix_secs": 1,
      "priority": "low"
    }
  ],
  "status_changes": [
    {
      "status": "open",
      "changed_at_unix_secs": 1,
      "changed_by_user_id": "changed_by_user_id"
    }
  ],
  "source": "qa",
  "created_at_unix_secs": 1,
  "updated_at_unix_secs": 1,
  "title": "title",
  "first_seen_unix_secs": 1,
  "last_seen_unix_secs": 1,
  "qa_comment": "qa_comment",
  "priority": "low",
  "merged_into_ticket_id": "merged_into_ticket_id",
  "assignee_user_id": "assignee_user_id",
  "search_match": {
    "field": "title",
    "snippet": "snippet",
    "highlight_start": 1,
    "highlight_end": 1,
    "turn_index": 1
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.elevenlabs.io/v1/convai/triage-tickets/agentqa_ticket_id"

payload = {}
headers = {"Content-Type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.elevenlabs.io/v1/convai/triage-tickets/agentqa_ticket_id';
const options = {method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.elevenlabs.io/v1/convai/triage-tickets/agentqa_ticket_id"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.elevenlabs.io/v1/convai/triage-tickets/agentqa_ticket_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://api.elevenlabs.io/v1/convai/triage-tickets/agentqa_ticket_id")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.elevenlabs.io/v1/convai/triage-tickets/agentqa_ticket_id', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.elevenlabs.io/v1/convai/triage-tickets/agentqa_ticket_id");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.elevenlabs.io/v1/convai/triage-tickets/agentqa_ticket_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```