Skip to content

Reply Create



POST /api/v1/issue/reply/create

Overview

Body Request Parameters

Parameter Name Type Required Description
issueUUID string Y Corresponding reply issue UUID
Example: issueUUID
Can be empty: False
attachmentUuids array Reply attachment upload list UUIDs
Example: []
Can be empty: True
content string Reply content
Example: answer_xxx
Can be empty: True
Can be an empty string: True
$maxCustomLength: 65535
extend json Y Additional extended information, default {} if no content
Example: {}
Can be empty: True

Supplementary Parameter Explanation

Basic Parameter Description

Parameter Name Parameter Type Required Parameter Description
issueUUID string Y Corresponding reply issue UUID
attachmentUuids array N Corresponding reply issue attachment list UUIDs, must be uploaded via the /api/v1/attachment/upload interface first
content string N Reply content
attachmentUuids array N Attachment upload list UUID
extend json Y Extended fields, default to {}

Extended Field 'extend' Description

In update scenarios, channels and channelUUIDs will by default associate with both the default channel and any appended channels. If '[]' is passed, it will only exist in the space's default channel by default.

Parameter Name Parameter Type Required Parameter Description
channels array N Expected issue delivery resource list
members array N Expected issue notification target members
extra json N Information related to the reply creator for frontend display

Example of the extend field:

{
    "members": [
        {
            "type": "@",
            "uuid": "acnt_xxxx32",
            "exists": true
        }
    ],
    "channels": [
        {
            "type": "#",
            "uuid": "chan_xxxx32",
            "exists": true
        }
    ],
    "extra": {
            "creator": {
                "name": "xxx",
                "email": "xxx@guance.com",
            }
            }
}

Request Example

curl 'https://openapi.guance.com/api/v1/issue/reply/create' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"issueUUID":"issue_xxxx32","content":"aaa","attachmentUuids":[],"extend":{"members":[],"channels":[],"linkList":[]}}'\
--compressed

Response

{
    "code": 200,
    "content": {
        "content": "aaa",
        "createAt": 1690810887,
        "creator": "acnt_xxxx32",
        "deleteAt": -1,
        "extend": {
            "channels": [],
            "linkList": [],
            "members": []
        },
        "id": null,
        "issueUUID": "issue_xxxx32",
        "status": 0,
        "type": "reply",
        "updateAt": 1690810887,
        "updator": "acnt_xxxx32",
        "uuid": "repim_xxxx32",
        "workspaceUUID": "wksp_xxxx32"
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "10459577100278308134"
} 

Feedback

Is this page helpful? ×