Add

[POST] .../v1/quickreply/add

Adds a shared quick reply suggestion. Use this method to create a reusable quick-reply template that can be shown in chat workflows. The request body is required, text is required and text must not exceed 400 characters after trimming. The current request user must have quick reply add permission; the method inserts the template, writes an action log record, invalidates the list cache and returns new_id. Missing body, missing or too long text, denied permission, insert-id failures, transaction failures and database errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
text String Required Suggestion text.

Request Example

{
  "text": "Approve"
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Insert Created record result.

Response Example

{
  "ok": true,
  "result": {
    "new_id": 12
  }
}