共用方式為


Chat Thread - Update Chat Thread Properties

更新線程的屬性。

PATCH {endpoint}/chat/threads/{chatThreadId}?api-version=2024-03-07

URI 參數

名稱 位於 必要 類型 Description
chatThreadId
path True

string

要更新之線程的標識碼。

endpoint
path True

string

Azure 通訊資源的端點。

api-version
query True

string

要叫用的 API 版本。

要求標頭

Media Types: "application/merge-patch+json"

名稱 必要 類型 Description
Authorization True

string

ACS (Azure 通訊服務) 使用者存取令牌。

要求本文

Media Types: "application/merge-patch+json"

名稱 類型 Description
topic

string

聊天對話主題。

回應

名稱 類型 Description
204 No Content

已成功更新線程。

401 Unauthorized

CommunicationErrorResponse

未經授權。

403 Forbidden

CommunicationErrorResponse

禁止。

429 Too Many Requests

CommunicationErrorResponse

要求太多。

Other Status Codes

CommunicationErrorResponse

服務無法使用。

安全性

Authorization

ACS (Azure 通訊服務) 使用者存取令牌。

類型: apiKey
位於: header

範例

Update chat thread topic

範例要求

PATCH https://contoso.westus.communications.azure.com/chat/threads/19:uni01_zbnh3nt2dfuffezc3sox7dog7wfhk6y5qe2rwlnfhlhdzirihdpq@thread.v2?api-version=2024-03-07

{
  "topic": "Updated Thread Topic"
}

範例回覆

{
  "error": {
    "code": "Unauthorized",
    "message": "Request is not authorized."
  }
}
{
  "error": {
    "code": "Forbidden",
    "message": "User is not allowed to perform specified action."
  }
}
{
  "error": {
    "code": "TooManyRequests",
    "message": "Rate limit exceeded."
  }
}
{
  "error": {
    "code": "ServiceUnavailable",
    "message": "The server is currently unable to handle the request."
  }
}

定義

UpdateChatThreadRequest

要求裝載以更新聊天對話。

名稱 類型 Description
topic

string

聊天對話主題。