Skip to content

Modify



POST /api/v1/issue/{issue_uuid}/modify

Overview

Update the Issue title, description, level, assignee, and status; record changes; and send notifications.

Before Calling and Usage Steps

First read Issue Details, copy the complete extend object that needs to be retained, and then submit the target fields. If name, description, level, and statusType are omitted, their current values are retained. extend must be submitted at this time; {} replaces the extension content and may clear information such as the original assignee. extend.channels only appends bound channels; [] does not unbind old channels. Updating the level, assignee, or status creates an operation record; Resolved/Closed records resolveAt, and reopening does not clear its historical value. To add attachments, upload them first, then submit attachmentUuids to bind them; existing attachment records can be re-associated, and omitting them or passing [] does not clear existing bindings. To remove existing attachments, use the attachment deletion API. A successful API call does not mean the notification is delivered. Notifications are executed asynchronously, and recipients depend on channel subscriptions, Notification Targets, notification policies, the assignee, and the members @ mentioned this time; 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, and then decide whether to retry to avoid duplicate records and notifications.

Route Parameters

Parameter Type Required Description
issue_uuid string Y Issue UUID of the current Workspace.
Example: issue_example
How to obtain or fill in: Obtain from content.data[].uuid in the Issue List or content.uuid in the Create Issue response.

Request Headers

Parameter 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 operation permission from API Key Management in the target Workspace.

Body Request Parameters

Parameter Type Required Description
attachmentUuids[*] json UUID of a single uploaded attachment.
Example: att_example
How to obtain or fill in: Obtain content.attachmentUuid from Upload Attachment.
extend.text json Optional plain text used for server-side length checking, up to 3000 characters.
Example: Investigating production API latency.
How to obtain or fill in: Extract from the plain text of the description and keep it within 3000 characters; if omitted, it is checked as empty text.
extend.channels array Array of channel references; appends to and merges with bound channels; [] does not clear existing bindings.
Example: [{"type": "#", "uuid": "chan_example", "name": "Production anomaly"}]
How to obtain or fill in: Obtain the actual channel UUID from Channel List and reference the # channel in the description. If omitted, no channel is appended.
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_example
How to obtain or fill in: Obtain from content[].uuid in Channel List.
extend.channels[*].name json Client display name.
Example: Production anomaly
How to obtain or fill in: Obtain 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 in read results.
extend.channels[*].exists json Optional display marker; does not replace server-side resource validation.
Example: true
How to obtain or fill in: It does not need to be passed as a validity credential; query responses recalculate it based on current resource existence.
extend.members array References to members @ mentioned this time, used to collect one-time notification email addresses; this is not the assignee 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; if omitted, no member is @ mentioned this time.
extend.members[*] json Member reference object.
Example: {"type": "@", "uuid": "acnt_example", "name": "On-Call engineer"}
How to obtain or fill in: Fill in an object for each account that needs to be @ mentioned.
extend.members[*].uuid json Member account UUID.
Example: acnt_example
How to obtain or fill in: Obtain the acnt_ account UUID from member management in the target Workspace.
extend.members[*].name json Client display name.
Example: On-Call engineer
How 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: true
How to obtain or fill in: It does not need to be passed as a validity credential; it is recalculated on query.
extend.extra json External display information; does not replace the actual API authentication/author identity.
Example: {}
How to obtain or fill in: Fill in when a third-party integration needs to display an external operator; omit it or use {} 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: Creator from the integrated system; during modification, the original creator is usually retained by the server.
extend.extra.creator.name json Display name; optional.
Example: External ticket creator
How to obtain or fill in: Use the display name from the external system.
extend.extra.creator.email json Display email; optional.
Example: xxx@guance.com
How 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: During modification, use the operator information for this operation from the integrated system.
extend.extra.updator.name json Display name; optional.
Example: External ticket updater
How to obtain or fill in: Use the display name from the external system.
extend.extra.updator.email json Display email; optional.
Example: xxx@guance.com
How to obtain or fill in: Use the email from the external system.
extend.manager array Assignee identifier array; pass [] or omit when there is no assignee. During modification, pass the complete target array; invalid accounts/teams/Notification Targets may be filtered out; dutyPerson is resolved to a specific target based on the current day's On-Call calendar in the Workspace time zone, not determined by the current day's HH:MM time slot; after this save, it will not automatically change with subsequent shifts.
Example: ["acnt_example"]
How to obtain or fill in: Obtain the acnt_ account UUID from member management and the group_ UUID from team management in the target Workspace; obtain the Notification Target UUID from the Notification Targets List. You can also enter an actual email address or dutyPerson.
extend.manager[*] json Account UUID, team UUID, Notification Target UUID, email address, or dutyPerson.
Example: acnt_example
How to obtain or fill in: Obtain the acnt_ account UUID from member management and the group_ UUID from team management in the target Workspace; obtain the Notification Target UUID from the Notification Targets List. You can also enter an actual email address or dutyPerson.
extend.linkList array Array of reference links, saved as needed by the client.
Example: [{"name": "Runbook", "link": "https://example.com/runbook"}]
How to obtain or fill in: Provided by the business side as accessible reference links; omit to add none.
extend.linkList[*] json Link object.
Example: {"name": "Runbook", "link": "https://example.com/runbook"}
How to obtain or fill in: Each item describes one reference link.
extend.linkList[*].name json Link name.
Example: Runbook
How to obtain or fill in: Enter the link display name.
extend.linkList[*].link json Link URL.
Example: https://example.com/runbook
How to obtain or fill in: Enter a complete accessible URL; replace the example domain.
extend.sourceLink json Optional source link; for single-record data analysis in viewer, doc_time can be used to determine the query window covering the record.
Example: https://example.com/source?doc_time=1785430800000
How to obtain or fill in: Obtain the complete link from the source page in the console; for viewer sources, doc_time uses Unix milliseconds.
extend.extra.managerInfos json Mapping of display information for email assignees; optional.
Example: {"xxx@guance.com": {"name": "External On-Call person"}}
How to obtain or fill in: Use the email addresses in extend.manager as keys to fill in display information for external assignees.
extend.extra.managerInfos.email.name json Display name of a single email assignee.
Example: External On-Call person
How to obtain or fill in: The email key must match an email address in the assignee array; the name comes from the external business system.
name string Issue title, up to 256 characters.
Allow null: False
$maxCustomLength: 256
Example: checkout-api latency anomaly
How to obtain or fill in: Enter a clear title based on the problem symptoms.
level string Optional new level UUID; omit to keep the current level, or use an empty string to clear the level.
Allow null: False
Allow empty string: True
Example: system_level_1
How to obtain or fill in: First call Valid Level List and use the UUID actually returned; when no level is specified, pass an empty string.
description string Optional new description; omit to keep the original value.
Allow null: False
Example: Investigate production API latency and record the handling process.
How to obtain or fill in: Describe the symptoms, scope, and handling objectives; detailed diagnostic materials can be uploaded as attachments.
statusType integer Optional status; omit to leave unchanged. Status: 10 Open, 15 Working, 20 Resolved, 25 Closed, 30 Pending.
Allow null: False
Allowed values: [10, 15, 20, 25, 30]
Example: 15
How to obtain or fill in: Select 10/15/20/25/30 based on business handling progress.
extend json Y Required extension object; do not pass null. The passed object replaces the saved extension content; some creator display information is retained by the server.
Allow null: True
Example: {}
How to obtain or fill in: Pass {} when there is no extension content; before modification, read the original value first and adjust the fields to change in the complete object.
attachmentUuids array Optional array of uploaded attachment UUIDs; when non-empty, each item is bound or re-bound to this Issue; omitting it or passing [] does not delete old attachments.
Allow null: True
Example: []
How to obtain or fill in: First call Upload Attachment and save content.attachmentUuid; only attachments actually uploaded and available in this Workspace can be used. Omitting it or passing [] adds no attachments.

Additional Parameter Notes

This API does not modify resourceType/resourceUUID/resource, nor does it provide Issue deletion. For attachment management, use Create Reply and Delete Attachment together; before batch retries, query the final status first.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/issue/issue_example/modify' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"statusType":15,"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. For Create Issue/Reply responses constructed before persistence, this may be null; use uuid to operate 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 create call, which may be an API Key identifier, account, or system identity.
content.updator string Most recent update identity; 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.name string Issue title.
content.level string Level UUID; an empty string is allowed to indicate unspecified; this is not the level name.
content.statusType integer Status: 10 Open, 15 Working, 20 Resolved, 25 Closed, 30 Pending.
content.statusTypeUpdateRecord array<string> Status change history; each item is in the form Unix seconds&&status name.
content.statusTypeUpdateRecord[] string A single status change record.
content.description string Issue description.
content.resourceType string Source type, such as event, dashboard, viewer; for automatically created Issues, it may also be checker, keyeventAutoDiscovery, etc.
content.resourceUUID string Associated source identifier; its specific meaning varies by source type.
content.resource string Source module or name, for example LOG, TRACING, EVENTS, RUM.
content.repeatType string Repetition type for automatically discovered issues; can be new, repeat, regression; may be empty for manual creation.
content.subIdentify string Associated sub-identifier defined by the source; usually empty for manual creation.
content.resolveAt integer Time when most recently set to Resolved or Closed, Unix seconds; -1 if never resolved. Reopening does not automatically clear this historical time.
content.eventCount integer Number of associated events recorded.
content.eventCountUpdateAt integer Last update time of the associated event count, Unix seconds; -1 if not yet recorded.
content.triggerRecord object Legacy compatibility field; no longer used as a notification trigger control parameter.
content.extend object Extension content. Requests should pass the object {}; do not pass null; see the parameter table for structures such as members, channels, and assignees.
content.extend.text string Plain text used for length checking, up to 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.manager array<string> Assignee identifier array, used only for Issues; members/teams/Notification Targets/email addresses, etc. are normalized by validity.
content.extend.manager[] string A single assignee identifier.
content.extend.linkList array<object> Business reference links.
content.extend.linkList[].name string Link display name.
content.extend.linkList[].link string Business URL.
content.extend.sourceLink string Source page link; filled in by the client when present.
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 for the third-party creator; 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 Display information for the third-party updater; 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 Display information mapping keyed by assignee email, used only for Issues.
content.extend.extra.managerInfos.email.name string Display name of the assignee for the corresponding email.
content.extend.Other fields JSON Other extension information saved by the client; this does not mean all of it triggers business behavior.
content.creatorInfo object Creator display information; when third-party extend.extra.creator has a value, some read APIs preferentially use that display information.
content.creatorInfo.name string Display name; optional.
content.creatorInfo.email string Email; optional.
content.creatorInfo.uuid string Account UUID; optional.
content.updatorInfo object Updater display information; may be an empty object.
content.updatorInfo.name string Display name; optional.
content.updatorInfo.email string Email; optional.
content.updatorInfo.uuid string Account UUID; optional.
content.levelInfo object Historical level display information; may still contain old levels that have been deleted or are not in the current valid list; may be {} when there is no corresponding configuration. Whether it can be used for new writes is subject to the valid level list.
content.levelInfo.uuid string Level UUID; whether it can still be used for Issue.level is subject to the current valid level list.
content.levelInfo.name string Level name, displayed according to the Workspace language or level configuration.
content.levelInfo.color string Color string, usually #RRGGBB.
content.levelInfo.description string Level description.
content.managerInfos array<object> Resolved assignee display information. Account information is returned according to actually visible fields; teams/Notification Targets usually include uuid and name; email addresses include uuid/email/name.
content.managerInfos[].uuid string Assignee identifier.
content.managerInfos[].name string Display name.
content.managerInfos[].email string Email assignee or account email, provided when available.
content.ruleType string Type provided when the source is checker and a Monitor configuration is found.
content.eventTimeRange array<integer> Start and end times provided when an associated event count exists, Unix milliseconds.
content.eventTimeRange[] integer Unix millisecond timestamp.
content.eventConditions string Event query conditions provided when a valid rule exists for an auto-discovery source.
content.eventConditionsFilters JSON Filter editing data for an auto-discovery source, provided when configured.
content.attachments array<object> List of attachments bound to the Issue; to download, use Download Attachment.
content.attachments[].uuid string Attachment UUID.
content.attachments[].fileName string Original file name.
content.attachments[].fileSuffix string File suffix.
content.declaration object or null Workspace public declaration; attached only at the content level.
content.creatorInfo.status integer Account record status; optional.
content.creatorInfo.wsAccountStatus integer Account status in the current Workspace; optional.
content.creatorInfo.username string Login name; optional.
content.creatorInfo.iconUrl string Account avatar URL; optional.
content.creatorInfo.mobile string Account mobile number; may be empty or omitted.
content.creatorInfo.countryCode string Mobile number country/region code; optional.
content.creatorInfo.acntWsNickname string Workspace nickname; optional.
content.updatorInfo.status integer Account record status; optional.
content.updatorInfo.wsAccountStatus integer Account status in the current Workspace; optional.
content.updatorInfo.username string Login name; optional.
content.updatorInfo.iconUrl string Account avatar URL; optional.
content.updatorInfo.mobile string Account mobile number; may be empty or omitted.
content.updatorInfo.countryCode string Mobile number country/region code; optional.
content.updatorInfo.acntWsNickname string Workspace nickname; optional.
content.managerInfos[].status integer Account record status; optional.
content.managerInfos[].wsAccountStatus integer Account status in the current Workspace; optional.
content.managerInfos[].username string Login name; optional.
content.managerInfos[].iconUrl string Account avatar URL; optional.
content.managerInfos[].mobile string Account mobile number; may be empty or omitted.
content.managerInfos[].countryCode string Mobile number country/region code; optional.
content.managerInfos[].acntWsNickname string Workspace nickname; optional.
content.levelInfo.id integer or null Level record ID; this field is not provided for system default levels.
content.levelInfo.workspaceUUID string Optional field in historical level display information. UUID of the Workspace it belongs to.
content.levelInfo.status integer Optional field in historical level display information. Record status; 0 normal, 3 deleted. Distinct from the Issue business status statusType.
content.levelInfo.creator string Optional field in historical level display information. Identity of the create call, which may be an API Key identifier, account, or system identity.
content.levelInfo.updator string Optional field in historical level display information. Most recent update identity; empty string when not set.
content.levelInfo.createAt integer Optional field in historical level display information. Creation time, Unix seconds.
content.levelInfo.updateAt integer Optional field in historical level display information. Last update time, Unix seconds; may be -1 when not updated.
content.levelInfo.deleteAt integer Optional field in historical level display information. Deletion time, Unix seconds; -1 when not deleted.
content.levelInfo.extend object or null Optional field in historical level display information. Additional JSON object saved at creation; the level modification API currently does not modify this field.
content.levelInfo.isManage boolean or number Optional field in historical level display information. Whether it is a platform-managed level; Workspace-created levels are usually false.
content.levelInfo.isDefault boolean Display marker for system default level; optional.
{
  "code": 200,
  "content": {
    "id": 101,
    "uuid": "issue_example",
    "workspaceUUID": "wksp_example",
    "status": 0,
    "creator": "wsak_example",
    "updator": "wsak_example",
    "createAt": 1785430800,
    "updateAt": 1785430800,
    "deleteAt": -1,
    "name": "checkout-api latency anomaly",
    "level": "system_level_1",
    "statusType": 15,
    "statusTypeUpdateRecord": [
      "1785430800&&Working"
    ],
    "description": "Investigate production API latency and record the handling process.",
    "resourceType": "",
    "resourceUUID": "",
    "resource": "",
    "repeatType": "",
    "subIdentify": "",
    "extend": {},
    "resolveAt": -1,
    "eventCount": 0,
    "eventCountUpdateAt": -1,
    "triggerRecord": {},
    "creatorInfo": {},
    "updatorInfo": {},
    "levelInfo": {
      "uuid": "system_level_1",
      "name": "P1",
      "description": "Important business functions are unavailable, but the impact on users is limited.",
      "color": "#FF7931",
      "isDefault": true
    },
    "managerInfos": [],
    "attachments": [],
    "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 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 Invalid request JSON syntax Request JSON format error Correct the JSON according to content.reason, line, and column.
400 ft.JsonFormatError The top level of the JSON 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 match the query conditions The specified object does not exist Re-obtain the resource UUID in the same Workspace and check whether it has been deleted.
406 ft.IssueLevelNotExists level does not belong to the valid level set of the current Workspace Level configuration does not exist First query the Valid Level List and use the returned uuid; if no level is set, pass an empty string as described in the parameter notes.
406 ft.ExceedMaxLengthLimit The length of extend.text exceeds 3000 characters Exceeds the maximum text length limit Shorten the plain text field; upload large diagnostic materials as attachments.
400 ft.UnsupportFreeIssueManager A restricted Workspace plan uses an external email address that is not a member of this Workspace as the assignee Free Plan Workspaces do not support using an external email address as the Incident assignee Select a member of this Workspace, or check whether the plan supports external email assignees.
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 the failure persists, provide the traceId.

Feedback

Is this page helpful?