דלג לתוכן הראשי
PATCH
/
quick-replies
/
{quickReplyId}
curl --request PATCH \
  --url https://{projectID}.texterchat.com/server/api/v2/quick-replies/{quickReplyId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "updateClientMetadata": {
      "aiQuickReply": true
    }
  }
]
'
{
  "_id": "<string>",
  "send": {
    "contents": [
      {}
    ],
    "betweenMessagesDelay": 123,
    "target": [
      {
        "accountId": "<string>",
        "id": "<string>"
      }
    ]
  },
  "display": {
    "title": "<string>",
    "note": "<string>",
    "departments": [
      "<string>"
    ],
    "users": [
      "<string>"
    ]
  },
  "metadata": {
    "created": 123,
    "updated": 123,
    "client": {}
  }
}

הרשאות

Authorization
string
header
נדרש

API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.

פרמטרי נתיב

quickReplyId
string
נדרש

The unique identifier of the quick reply (_id). Obtain it from Get Existing Quick Replies

גוף

application/json
Required array length: 1 - 1000 elements

תגובה

The updated quick reply. Field-by-field reference: The Quick Reply object

A quick reply - one or more prepared messages agents (or the AI assistant) can send into matching chats

_id
string

Unique identifier of the quick reply

send
object
display
object

How and where the quick reply is displayed in Texter

metadata
object