Modify Reply¶
POST /api/v1/issue/reply/{reply_uuid}/modify
Overview¶
Modifies a regular reply created by the current API caller identity.
Before Calling and Usage Steps¶
Select a reply UUID from the Reply List and submit its issueUUID as well. The server requires that the current caller identity equal the reply creator; changing the API Key may mean the author condition is no longer met. If content is omitted, the original value is retained. extend is required and is replaced as an object; copy the information that still needs to be retained first. The server retains the original creator display information. Channel references are still appended and merged. To add attachments, upload them first, then pass attachmentUuids to bind them; omitting it or passing [] does not delete existing attachments. Invalid or unavailable attachments may cause an internal error; verify that the identifiers are valid before sending. A successful API call does not mean notifications are delivered. Notifications are executed asynchronously; recipients depend on channel subscriptions, notification targets, notification policies, assignees, and the members @ mentioned in this request. Verify the notification configuration and actual delivery in the console. Writes, subsequent notifications, and attachment processing are executed in separate steps. After a failure or timeout, first query whether the resource has been created or updated, then decide whether to retry, to avoid duplicate records and notifications.
Route Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| reply_uuid | string | Y | UUID of a single reply. Do not use the Issue UUID. Example: repim_exampleHow to obtain or specify: Get it from content.data[].uuid in Reply List or content.uuid in Create Reply. |
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the Workspace. Example: <DF-API-KEY>How to obtain or specify: Obtain an OpenAPI Key with the required permission from API Key management in the target Workspace. |
Body Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| attachmentUuids[*] | json | UUID of a single uploaded attachment. Example: att_exampleHow to obtain or specify: Get content.attachmentUuid from Upload Attachment. |
|
| extend.text | json | Optional plain text used for server-side length validation; maximum 3000 characters. Example: 定位生产接口延迟。How to obtain or specify: Extract from the plain text of the description and keep it within 3000 characters; if omitted, it is validated as empty text. |
|
| extend.channels | array | Array of channel references; appends and merges bound channels. [] does not clear existing bindings. Example: [{"type": "#", "uuid": "chan_example", "name": "生产异常"}]How to obtain or specify: Get a real channel UUID from Channel List to reference a # channel in the description. If omitted, no channels are appended. |
|
| extend.channels[*] | json | Channel reference object. Example: {"type": "#", "uuid": "chan_example", "name": "生产异常"}How to obtain or specify: For each item, select an actual channel in the same workspace. |
|
| extend.channels[*].uuid | json | Channel UUID. Example: chan_exampleHow to obtain or specify: Get it from content[].uuid in Channel List. |
|
| extend.channels[*].name | json | Client display name. Example: 生产异常How to obtain or specify: Get the corresponding name from Channel List for display; can be omitted. |
|
| extend.channels[*].type | json | Channel reference marker. Example: #How to obtain or specify: Channel references always use #; the server adds this marker to the read result. |
|
| extend.channels[*].exists | json | Optional display marker; does not replace server-side resource validation. Example: trueHow to obtain or specify: It does not need to be passed as validity proof; the query response recalculates it based on current resource existence. |
|
| extend.members | array | References to members @ mentioned in this request, used to collect one-time notification email addresses; this is not the assignee array. Example: [{"type": "@", "uuid": "acnt_example", "name": "值班工程师"}]How to obtain or specify: Obtain account UUIDs from member management in the target workspace; if omitted, no members are @ mentioned in this request. |
|
| extend.members[*] | json | Member reference object. Example: {"type": "@", "uuid": "acnt_example", "name": "值班工程师"}How to obtain or specify: For each account to mention, fill in an object. |
|
| extend.members[*].uuid | json | Member account UUID. Example: acnt_exampleHow to obtain or specify: Obtain an acnt_ account UUID from member management in the target workspace. |
|
| extend.members[*].name | json | Client display name. Example: 值班工程师How to obtain or specify: Use the member display name; can be omitted. |
|
| extend.members[*].type | json | Member reference marker. Example: @How to obtain or specify: Member references use @. |
|
| extend.members[*].exists | json | Optional display marker. Example: trueHow to obtain or specify: It does not need to be passed as validity proof; it is recalculated at query time. |
|
| extend.extra | json | External display information; does not replace the actual API authentication/author identity. Example: {}How to obtain or specify: Fill in when a third-party integration needs to display an external operator; omit or use {} when not needed. |
|
| extend.extra.creator | json | Creator display object. Example: {"name": "外部工单创建人", "email": "xxx@guance.com"}How to obtain or specify: Comes from the creator in the integrated system; when modifying, the server usually retains the original creator. |
|
| extend.extra.creator.name | json | Display name; can be omitted. Example: 外部工单创建人How to obtain or specify: Use the display name from the external system. |
|
| extend.extra.creator.email | json | Display email; can be omitted. Example: xxx@guance.comHow to obtain or specify: Use the email from the external system; the example is a fictitious address. |
|
| extend.extra.updator | json | Updater display object. Example: {"name": "外部工单更新人", "email": "xxx@guance.com"}How to obtain or specify: When modifying, use the information of the operator in the integrated system for this operation. |
|
| extend.extra.updator.name | json | Display name; can be omitted. Example: 外部工单更新人How to obtain or specify: Use the display name from the external system. |
|
| extend.extra.updator.email | json | Display email; can be omitted. Example: xxx@guance.comHow to obtain or specify: Use the email from the external system. |
|
| issueUUID | string | Y | UUID of the Issue to which the reply belongs; required. Allowed null: False Example: issue_exampleHow to obtain or specify: Get the uuid from Issue List or Issue Details. |
| attachmentUuids | array | Optional array of uploaded attachment UUIDs; when non-empty, binds or rebinds them to this reply; omitting it or passing [] does not delete old attachments. Allowed null: True Example: []How to obtain or specify: First call Upload Attachment and save content.attachmentUuid; only attachments actually uploaded in this workspace and available can be used. Omitting it or passing [] does not add attachments. |
|
| content | string | Optional new reply content; if omitted, the original content is retained; passing an empty string clears the content. Allowed null: True Allowed empty string: True Example: 已定位到数据库慢查询,正在优化。How to obtain or specify: Fill in the handling progress; for an attachment-only reply, omit it or pass an empty string. |
|
| extend | json | Y | Required extension object; do not pass null. The passed object replaces the stored extension content; some creator display information is retained by the server. Allowed null: True Example: {}How to obtain or specify: Pass {} when there is no extension content; before modifying, read the original value and adjust the fields to change in the complete object. |
Additional Parameter Notes¶
issueUUID must match the Issue to which the reply belongs. The external extend.extra.updator only controls display and does not bypass author validation.
Request Example¶
curl --request POST 'https://openapi.guance.com/api/v1/issue/reply/repim_example/modify' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json' \
--data-raw '{"issueUUID":"issue_example","content":"已完成慢查询优化,持续观察。","extend":{}}'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.id | integer or null | Record ID. Responses for creating an Issue/reply may be null when constructed before persistence; use uuid to operate on the resource. |
| content.uuid | string | Resource UUID. |
| content.workspaceUUID | string | UUID of the Workspace to which it belongs. |
| content.status | integer | Record status; 0 normal, 3 deleted. Distinct from the Issue business status statusType. |
| content.creator | string | Creating caller identity, which may be an API Key identifier, account, or system identity. |
| content.updator | string | Most recent updating identity; empty string if not set. |
| content.createAt | integer | Creation time, Unix seconds. |
| content.updateAt | integer | Last update time, Unix seconds; may be -1 if not updated. |
| content.deleteAt | integer | Deletion time, Unix seconds; -1 if not deleted. |
| content.issueUUID | string | UUID of the Issue to which it belongs. |
| content.content | string or null | Content of the reply or operation record. |
| content.type | string | reply for a regular reply, change for an operation record, eventReply for a linked event reply, autoDiscoveryReply for an auto-discovery reply. |
| content.extend | object | Extension content. The request should pass the object {} instead of null; for structures such as members, channels, and assignees, see the parameter table. |
| content.extend.text | string | Plain text used for length validation; maximum 3000 characters. |
| content.extend.channels | array<object> |
Channels referenced in the description, including uuid, name, type, and exists; on return, exists is refreshed based on current resource existence. |
| content.extend.channels[].uuid | string | Channel UUID. |
| content.extend.channels[].name | string or null | Display name. |
| content.extend.channels[].type | string | Channel reference marker #. |
| content.extend.channels[].exists | boolean | Whether the channel exists at return time. |
| content.extend.members | array<object> |
Member references @ mentioned in the description, including uuid, name, type, and exists. |
| content.extend.members[].uuid | string | Member account UUID. |
| content.extend.members[].name | string or null | Display name. |
| content.extend.members[].type | string | Member reference marker @. |
| content.extend.members[].exists | boolean | Whether the account exists at return time. |
| content.extend.extra | object | Display information for third-party integration; does not change the actual API authentication identity. |
| content.extend.extra.creator | object | Third-party creator display information; may include name and email. |
| content.extend.extra.creator.name | string | Creator display name. |
| content.extend.extra.creator.email | string | Creator display email. |
| content.extend.extra.updator | object | Third-party updater display information; may include name and email. |
| content.extend.extra.updator.name | string | Updater display name. |
| content.extend.extra.updator.email | string | Updater display email. |
| content.extend.extra.managerInfos | object | Mapping of display information keyed by assignee email; used only by Issues. |
| content.extend.extra.managerInfos.邮箱.name | string | Display name of the assignee for the corresponding email. |
| content.extend.其他字段 | JSON | Other extension information saved by the client; not all of it triggers business behavior. |
| content.declaration | object or null | Workspace public declaration; appended only at the content level. |
{
"code": 200,
"content": {
"id": 301,
"uuid": "repim_example",
"workspaceUUID": "wksp_example",
"status": 0,
"creator": "wsak_example",
"updator": "wsak_example",
"createAt": 1785430800,
"updateAt": 1785430860,
"deleteAt": -1,
"issueUUID": "issue_example",
"content": "已完成慢查询优化,持续观察。",
"type": "reply",
"extend": {},
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Resolution |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Request field is missing or the field value violates the declared validation conditions | Parameter parsing failed | Check the parameter position, field name, type, and value. |
| 400 | ft.RequestJsonFormatError | Invalid request JSON syntax | Request JSON format error | Correct the JSON according to content.reason, line, and column. |
| 400 | ft.JsonFormatError | JSON top level is not an object | Some JSON file format error | Submit a JSON object. |
| 404 | ft.ObjectNotExists | The specified resource does not exist in the current Workspace or does not meet the query conditions | Specified object does not exist | Obtain the resource UUID in the same workspace again and check whether it has been deleted. |
| 400 | ft.IssueReplyNotModify | The current caller identity is not the creator of this reply | You are not the creator of this reply and are not allowed to edit | Use the same caller identity used when creating the reply, or have an authorized operator handle it according to the business process. |
| 406 | ft.ExceedMaxLengthLimit | The length of extend.text exceeds 3000 characters | Exceeds maximum text length limit | Shorten the plain text field; upload large diagnostic materials as attachments. |
| 500 | ft.InternalServerError | Saving the level or configuration, auditing, or other internal processing failed | Internal error | First read the current level or configuration to confirm the result, then decide whether to retry; if it continues to fail, provide the traceId. |