Reply Create¶
POST /api/v1/issue/reply/create
Overview¶
Creates a regular reply for an Issue. You can bind uploaded attachments, append channels, and @ mention members at the same time.
Prerequisites and Usage Steps¶
First confirm the target Issue in Issue Details. issueUUID and extend are required; pass {} when there is no extended content. Upload attachments first, then submit attachmentUuids when creating the reply to bind them. extend.channels are appended and merged into the channels already bound to the Issue rather than bound only to this reply; members is used for the @ notifications in this request. On success, the reply uuid is returned, and you can then query the reply list. A successful API call does not mean notifications are delivered. Notifications are executed asynchronously, and recipients depend on channel subscriptions, notification targets, Alert Policy, owners, and the members mentioned with @ 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, check whether the resource has already been created or updated before retrying, so as to avoid duplicate records and notifications.
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 fill in: Obtain an OpenAPI Key with the required permissions 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 fill in: Take content.attachmentUuid from Upload Attachment. |
|
| extend.text | json | Optional plain text used by the server for length checks, up to 3000 characters. Example: Pinpoint production API latency.How to obtain or fill in: Extract the plain text from the description and keep it within 3000 characters; if omitted, an empty text is checked. |
|
| extend.channels | array | Array of channel references; appends and merges the already bound channels, and [] does not clear existing bindings. Example: [{"type": "#", "uuid": "chan_example", "name": "Production anomaly"}]How to obtain or fill in: Get the actual channel UUID from Channel List to reference a # channel in the description. Omit to append nothing. |
|
| extend.channels[*] | json | Channel reference object. Example: {"type": "#", "uuid": "chan_example", "name": "Production anomaly"}How to obtain or fill in: Select one actual channel in the same workspace for each item. |
|
| extend.channels[*].uuid | json | Channel UUID. Example: chan_exampleHow to obtain or fill in: Obtain it from content[].uuid in Channel List. |
|
| extend.channels[*].name | json | Display name on the client. Example: Production anomalyHow to obtain or fill in: Take the corresponding name from Channel List for display; optional. |
|
| extend.channels[*].type | json | Channel reference marker. Example: #How to obtain or fill in: Channel references always use #; the server adds this marker to the result. |
|
| extend.channels[*].exists | json | Optional display marker; does not replace server-side resource validation. Example: trueHow to obtain or fill in: You do not need to pass it as a validity credential; query responses recalculate it based on current resource existence. |
|
| extend.members | array | Member references to @ mention in this request, used to collect one-time notification email addresses; this is not the owner array. Example: [{"type": "@", "uuid": "acnt_example", "name": "On-Call Engineer"}]How to obtain or fill in: Obtain the account UUID from member management in the target workspace; omit to add no @ mentions in this request. |
|
| extend.members[*] | json | Member reference object. Example: {"type": "@", "uuid": "acnt_example", "name": "On-Call Engineer"}How to obtain or fill in: Fill in one object for each account to @ mention. |
|
| extend.members[*].uuid | json | Member account UUID. Example: acnt_exampleHow to obtain or fill in: Obtain the acnt_ account UUID from member management in the target workspace. |
|
| extend.members[*].name | json | Display name on the client. Example: On-Call EngineerHow to obtain or fill in: Use the member display name; optional. |
|
| extend.members[*].type | json | Member reference marker. Example: @How to obtain or fill in: Member references use @. |
|
| extend.members[*].exists | json | Optional display marker. Example: trueHow to obtain or fill in: You do not need to pass it as a validity credential; it is recalculated on query. |
|
| extend.extra | json | External display information; does not replace the actual API authentication or author identity. Example: {}How to obtain or fill in: Fill it in when a third-party integration needs to display an external operator; omit it or pass {} when not needed. |
|
| extend.extra.creator | json | Creator display object. Example: {"name": "External ticket creator", "email": "xxx@guance.com"}How to obtain or fill in: Comes from the creator in the integrated system; on update, the existing creator is usually retained by the server. |
|
| extend.extra.creator.name | json | Display name; optional. Example: External ticket creatorHow to obtain or fill in: Use the display name from the external system. |
|
| extend.extra.creator.email | json | Display email; optional. Example: xxx@guance.comHow to obtain or fill in: Use the email from the external system; the example is a fictitious address. |
|
| extend.extra.updator | json | Updater display object. Example: {"name": "External ticket updater", "email": "xxx@guance.com"}How to obtain or fill in: On update, use the information of the operator who performed this operation in the integrated system. |
|
| extend.extra.updator.name | json | Display name; optional. Example: External ticket updaterHow to obtain or fill in: Use the display name from the external system. |
|
| extend.extra.updator.email | json | Display email; optional. Example: xxx@guance.comHow to obtain or fill in: Use the email from the external system. |
|
| issueUUID | string | Y | UUID of the Issue that the reply belongs to; required. Allowed null: False Example: issue_exampleHow to obtain or fill in: Obtain the uuid from Issue List or Issue Details. |
| attachmentUuids | array | Optional array of uploaded attachment UUIDs; when non-empty, they are bound or rebound to this reply; omitting it or passing [] does not delete existing attachments. Allowed null: True Example: []How to obtain or fill in: Call Upload Attachment first and save content.attachmentUuid; only attachments actually uploaded and available in this workspace can be used. Omitting it or passing [] adds no attachments. |
|
| content | string | Reply content; on creation, up to 65535 length units: ASCII and half-width katakana characters count as 1 each, other characters such as Chinese characters usually count as 2, and whitespace content counts as 0. Defaults to an empty string when omitted. Allowed null: True Allowed empty string: True $maxCustomLength: 65535 Example: Identified the slow database query and are optimizing it.How to obtain or fill in: Fill in the handling progress; for attachment-only replies, omit it or pass an empty string. |
|
| extend | json | Y | Required extension object; pass {} when there is no content, and do not pass null. Allowed null: True Example: {}How to obtain or fill in: Pass {} when there is no extended content; before updating, read the original values first and adjust the fields to change within the complete object. |
Additional Parameter Notes¶
This API does not return a stable "Issue does not exist" business error before creation, so confirm that the target Issue exists first. An empty reply with no valid content or attachments may also be created successfully; clients should check according to their business requirements.
Request Example¶
curl --request POST 'https://openapi.guance.com/api/v1/issue/reply/create' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json' \
--data-raw '{"issueUUID":"issue_example","content":"Identified the slow database query and are optimizing it.","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 number. Responses for Issue/reply creation may be null when constructed before persistence; use uuid for operating on resources. |
| content.uuid | string | Resource UUID. |
| content.workspaceUUID | string | UUID of the workspace it belongs to. |
| content.status | integer | Record status; 0 normal, 3 deleted. Distinct from the Issue business status statusType. |
| content.creator | string | Identity of the creation call; may be an API Key identifier, an account, or a system identity. |
| content.updator | string | Identity of the most recent update; an empty string when not set. |
| content.createAt | integer | Creation time, Unix seconds. |
| content.updateAt | integer | Last update time, Unix seconds; may be -1 when not updated. |
| content.deleteAt | integer | Deletion time, Unix seconds; -1 when not deleted. |
| content.issueUUID | string | UUID of the Issue it belongs to. |
| 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 reply associated with an event, autoDiscoveryReply for an auto-discovery reply. |
| content.extend | object | Extended content. Requests should pass the object {}, not null; see the parameter table for the members, channels, owners, and other structures. |
| content.extend.text | string | Plain text used for length checks, up to 3000 characters. |
| content.extend.channels | array<object> |
Channels referenced in the description, containing uuid, name, type, and exists; on return, exists is refreshed according to 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, containing 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 | Display information of the third-party creator; may contain name and email. |
| content.extend.extra.creator.name | string | Display name of the creator. |
| content.extend.extra.creator.email | string | Display email of the creator. |
| content.extend.extra.updator | object | Display information of the third-party updater; may contain name and email. |
| content.extend.extra.updator.name | string | Display name of the updater. |
| content.extend.extra.updator.email | string | Display email of the updater. |
| content.extend.extra.managerInfos | object | Map of display information keyed by owner email; used only by Issues. |
| content.extend.extra.managerInfos.Email.name | string | Display name of the owner corresponding to the email. |
| content.extend.Other fields | JSON | Other extension information saved by the client; not all of it triggers business behavior. |
| content.declaration | object or null | Workspace public declaration; attached only at the content level. |
{
"code": 200,
"content": {
"id": null,
"uuid": "repim_example",
"workspaceUUID": "wksp_example",
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785430800,
"updateAt": -1,
"deleteAt": -1,
"issueUUID": "issue_example",
"content": "Identified the slow database query and are optimizing it.",
"type": "reply",
"extend": {},
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Response¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | A request field is missing, or a field value violates the declared validation conditions | Parameter parsing failed | Check the parameter location, field name, type, and value. |
| 400 | ft.RequestJsonFormatError | The request JSON syntax is invalid | Request JSON format error | Fix the JSON according to content.reason, line, and column. |
| 400 | ft.JsonFormatError | The JSON top level is not an object | Some json file format error | Submit a JSON object. |
| 406 | ft.ExceedMaxLengthLimit | The length of extend.text exceeds 3000 characters | Exceeded the maximum text length limit | Shorten the plain text field; upload large diagnostic materials as attachments. |
| 500 | ft.InternalServerError | Saving the tier or configuration, auditing, or other internal processing failed | Internal error | Read the current tier or configuration first to confirm the result, then decide whether to retry; if it keeps failing, provide the traceId. |