Reply Modification¶
POST /api/v1/issue/reply/{reply_uuid}/modify
Overview¶
Route Parameters¶
Parameter | Type | Required | Description |
---|---|---|---|
reply_uuid | string | Y | reply_uuid |
Body Request Parameters¶
Parameter | Type | Required | Description |
---|---|---|---|
issueUUID | string | Y | UUID of the issue Example: issueUUID Allow empty: False |
attachmentUuids | array | List of attachment UUIDs for the reply Example: [] Allow empty: True |
|
content | string | Content of the reply Example: answer_xxx Allow empty: True Allow empty string: True |
|
extend | json | Y | Additional extended information, default {} Example: {} Allow empty: True |
Parameter Additional Notes¶
Basic Parameter Description
Parameter | Type | Required | Description |
---|---|---|---|
issueUUID | string | Y | UUID of the corresponding issue reply |
attachmentUuids | array | N | List of attachment UUIDs for the reply issue, must be uploaded via /api/v1/attachment/upload interface first |
content | string | N | Content of the reply |
extend | json | Y | Extended field, default {} |
Extended Field extend Description
In the update scenario, the roles of channels and channelUUIDs will default to associating with the default channel and additional channels. If [] is passed, it will only exist in the workspace default channel.
Parameter | Type | Required | Description |
---|---|---|---|
channels | array | N | List of resources expected to be delivered by the issue |
members | array | N | List of notification target members expected to be notified by the issue |
extra | json | N | Information related to the reply updator, used for front-end display |
extend field example:
{
"members": [
{
"type": "@",
"uuid": "acnt_xxxx32",
"exists": true
}
],
"channels": [
{
"type": "#",
"uuid": "chan_xxxx32",
"exists": true
}
],
"extra": {
"updator": {
"name": "yyy",
"email": "xxx@guance.com",
}
}
}
Request Example¶
curl 'https://openapi.guance.com/api/v1/issue/reply/repim_xxxx32/modify' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"issueUUID":"issue_xxxx32","content":"aaaaas","attachmentUuids":[],"extend":{"channels":[],"linkList":[],"members":[],"text":"aaaaas"}}'\
--compressed
Response¶
{
"code": 200,
"content": {
"content": "aaaaas",
"createAt": 1690810887,
"creator": "acnt_xxxx32",
"deleteAt": -1,
"extend": {
"channels": [],
"linkList": [],
"members": [],
"text": "aaaaas"
},
"id": 319430,
"issueUUID": "issue_xxxx32",
"status": 0,
"type": "reply",
"updateAt": 1690811215,
"updator": "acnt_xxxx32",
"uuid": "repim_xxxx32",
"workspaceUUID": "wksp_xxxx32"
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "13131178623027797701"
}