Skip to content

Modify Incident



POST /api/v1/incidents/{incident_uuid}/modify

Overview

Modify incident fields, assignees, status, and tag associations.

Before You Call and Usage Steps

The current route actually requires anomaly.issueManage; you cannot configure only incidents.incidentsManage and assume write access. Only operate on the workspace to which the current API Key belongs. For incident UUIDs in this module, take content.data[].uuid from the Incident List; it usually has the incident_ prefix. The public endpoint does not accept workspaceUUID/workspaceUUIDs; do not copy cross-workspace parameters from frontend/internal APIs.

Omitted fields remain unchanged; name/description/level/assigner/incidentsStatus/extend/attachments/tags are handled according to their respective parameters. Although resourceURL and dimensionTag are declared in the route, the current controller does not update them; do not assume these fields have changed based on HTTP 200. extend is replaced as a whole, not patched; the attachment list is appended/rebound, and [] does not unbind. Passing {} still updates the time and may trigger an asynchronous update notification.

Passing assigner when the incident is open and the original assignee is empty can move it to working, even if [] is passed; if incidentsStatus=open is also explicitly passed, the assignee is ultimately cleared. Reopening an incident restarts timing/resets the current lifecycle event associations and does not automatically restore previous assignees. Changes to status, level, and assignee can write operation records and send Webhooks/notifications; some queue updates may occur before the main entity is committed.

Incidents, attachments, tags, operation records, and asynchronous dispatch are not one overall transaction; attachment binding itself commits. A 500/timeout may still have saved the incident main entity or some attachments/tags, and status/operation records and notifications may also have been generated. First read back the details/list to verify the current status, attachments, and tags; after confirmation, handle only the unfinished parts, as repeated modifications may generate duplicate operation records or notifications. HTTP success only indicates the API processing is complete; it does not prove that Webhook/Agent/On-Call notifications were actually executed or delivered.

Route Parameters

Parameter Type Required Description
incident_uuid string Y Incident UUID in the current workspace, not an alert event ID, SLO UUID, or comment UUID.
Allows null: False
Example: incident_example
How to get or enter: Get content.data[].uuid from the Incident List.

Request Headers

Parameter Type Required Description
DF-API-KEY string Y OpenAPI authentication credential for the workspace.
Example: <DF-API-KEY>
How to get or enter: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace.

Body Request Parameters

Parameter Type Required Description
tags[*] string Name of a tag with monitor/all scope.
Example: production
How to get or enter: Select a name whose scope includes monitor/all from the Tag List; you can also create a new tag name.
attachmentUUIDs[*] string A verified attachment UUID string.
Example: att_example
How to get or enter: First use Attachment Upload to get content.attachmentUuid, and confirm that the file is an attachment allowed for this operation.
dimensionTag.Custom Key string Dynamic dimension value, preferably a string; custom keys are supported on create but currently have no effect on modify.
Example: payment
How to get or enter: Dimension key and value from the source event/resource.
extend.linkList array Array of link objects; extend is ignored on create and saved only on modify.
Example: [{"name": "Troubleshooting Guide", "link": "https://example.com/runbook"}]
How to get or enter: Business links relevant to the caller.
extend.linkList[*].name string Link display name string.
Example: Troubleshooting Guide
How to get or enter: Display name of the business link.
extend.linkList[*].link string Link URL string; this API does not verify reachability.
Example: https://example.com/runbook
How to get or enter: A link accessible to the customer.
assigner[*] string Assignee account/group/notification target UUID string.
Example: acnt_example
How to get or enter: Get the account UUID from the Member List; for groups/notification targets, use their corresponding lists and verify that they are in the same workspace and available.
name string Required on create, optional on modify; declared maximum is 256 characters, but the database column is 128, so 1 to 128 characters is recommended; non-empty is not currently enforced. If omitted on modify, it remains unchanged; an empty string may clear it.
Allows null: False
Maximum length: 256
Example: Payment service anomaly
How to get or enter: Provide a recognizable incident title from the caller.
description string Optional string or null; if omitted on create, an empty string is used; if omitted on modify, it remains unchanged; an empty string clears it, and an explicit null saves null.
Allows null: True
Example: Some requests failed
How to get or enter: Enter the incident symptoms and troubleshooting clues.
level string Required on create, may be omitted on modify. Use the level UUID rather than the P1 name; create/modify currently does not enforce level validity, the list may contain disabled default items, and successful save does not prove the level is available.
Allows null: False
Example: system_level_1
How to get or enter: Get the uuid from the Incident Level List; if global levels are enabled in the backend, an administrator must confirm the level actually in effect.
assigner array Optional array; if omitted, it remains unchanged; if present, it replaces the whole value, and [] clears it. When there is currently no assignee and the incident is open, passing even [] may automatically move it to working; if incidentsStatus=open is explicitly passed at the end, the assignee is cleared again. Unknown identifiers are not currently rejected item by item, and assignerInfo in the response lists only successfully resolved items.
Allows null: False
Example: ["acnt_example"]
How to get or enter: Get the account UUID from the Member List; for groups/notification targets, use their corresponding lists and verify that they are in the same workspace and available.
incidentsStatus string Optional open/working/resolved/closed. If omitted, it remains unchanged; open clears the assignee, and reopening starts a new lifecycle and clears associated event snapshots; resolved/closed updates the notification queue but does not delete the incident.
Allows null: False
Optional values: ['open', 'working', 'resolved', 'closed']
Example: working
How to get or enter: Choose according to the business lifecycle and read back the current state first.
resourceURL string Optional on create; if omitted, an empty string is used, and the server does not automatically access this address; the response field is resourceUrl. Although the modify route exposes this parameter, the current controller does not assign it, so submitting it will not modify the existing URL.
Allows null: False
Example: https://example.com/runbook
How to get or enter: Enter the URL of a source page or troubleshooting guide accessible to the customer.
tags array Writing uses an array of names; each name is at most 128 characters and case-sensitive; if omitted on create, there are no tags; if omitted on modify, they remain unchanged; [] clears associations, and a passed array replaces all. New tags use the monitor scope; an existing name with a non-matching scope returns 400.
Allows null: False
Example: ["production"]
How to get or enter: Select a name whose scope includes monitor/all from the Tag List; you can also create a new tag name.
dimensionTag json Must be a JSON object on create, default {}; host/service/resource/pod_name/app_name/app_id/env/url are also written to the corresponding index columns; other keys can be saved. A root parameter of null/array/string is rejected first by the public route with 406; dimension values are preferably strings, and an unexpanded child value type error may still cause a database failure. The current controller does not process this parameter on modify, so submitting it will not update dimensions or index columns.
Allows null: False
Example: {"service": "payment"}
How to get or enter: Enter the event dimension information, preferably reading the same field values from the source service/resource data.
attachmentUUIDs array Array items are attachment UUIDs, not URLs. If omitted, no binding occurs; if present, each item is appended/rebound to the target one by one; [] does not clear existing attachments and is not a full replacement. Invalid/deleted attachments may return 500; this binding chain does not reliably verify the source workspace/original association, so callers should use only their own verified attachments and should not attempt to use attachments from other resources.
Allows null: False
Example: ["att_example"]
How to get or enter: First use Attachment Upload to get content.attachmentUuid, and confirm that the file is an attachment allowed for this operation.
extend json Must be a JSON object; a root parameter of null/array/string is first rejected with 406. On create, it is currently read but not passed to the entity, so submitted content is not saved, and the response is usually {}. On modify, if present, it replaces the whole value; {} clears it; if omitted, it remains unchanged; it is not recursively merged; undeclared child fields inside it must still maintain a valid structure to avoid affecting subsequent reads.
Allows null: False
Example: {"linkList": [{"name": "Troubleshooting Guide", "link": "https://example.com/runbook"}]}
How to get or enter: The caller fills in the business extension to save; before modifying, copy the complete extend from the details first.

Additional Parameter Notes

Omitted parameters remain unchanged; resourceURL/dimensionTag are currently not updated, and extend is replaced as a whole; the attachment UUID list does not perform clearing or unbinding. Modify permission is subject to the current anomaly.issueManage declaration.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/incidents/incident_example/modify' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"assigner":["acnt_example"],"incidentsStatus":"working"}'

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 Database row ID; use uuid for business location, and pre-submit snapshots may be null.
content.uuid string UUID of this resource.
content.status integer Database status, 0 active/3 deleted; different from the incident business status incidentsStatus.
content.creator string Creating principal; for an API Key, this is generally wsak_ plus the resource UUID.
content.updator string Most recent updating principal; may be empty if never updated.
content.createAt integer Creation time in Unix seconds.
content.updateAt integer Last update time in Unix seconds.
content.deleteAt integer Deletion time in Unix seconds; -1 if not deleted.
content.workspaceUUID string Workspace to which the incident belongs.
content.name string Incident name.
content.level string Incident level UUID, such as system_level_0, or legacy identifiers issl_/isslm_; not equal to the level display name.
content.description string or null Incident description.
content.source string Incident source; manual creation through this public endpoint is currently external, which does not mean External API authentication is used.
content.resourceCategory string Source resource category; for automatic incidents it is filled according to the source, and for manual creation through the public endpoint it is usually empty.
content.resourceType string Source resource type; for aggregated incidents it is incident_aggregation; for manual creation it is usually empty.
content.resourceUUID string Source resource UUID; usually empty for manual creation.
content.resourceUrl string Saved source URL; the response field has a lowercase l, unlike the request resourceURL.
content.resourceContent object or JSON Original source content; the type varies with the monitor/event/aggregation source; this field is removed from lists.
content.eventRelations array<object> Snapshots of events associated with the current incident lifecycle; reopening for a new round may clear them.
content.eventRelations[] object Source event association description; dynamic fields are returned by event type and are not configurable objects when creating an incident through this API.
content.eventRelations[].Custom Field JSON Association key-values saved by the event producer; read them according to the actual type first.
content.resourceIdentity string Source aggregation/sub-identifier; can be empty for manual creation.
content.assigner array<string> List of assignee identifiers; may contain acnt_/group_/notify_; not all identifiers are guaranteed to still be valid.
content.assigner[] string A saved assignee/group/notification target identifier.
content.incidentsStatus string Business status open/working/resolved/closed.
content.statusTime object Recorded status times for the current lifecycle, in Unix seconds; not every status is present.
content.statusTime.open integer Open time for this round.
content.statusTime.working integer Time this round entered working; may be omitted.
content.statusTime.resolved integer Recovery time for this round; may be omitted.
content.statusTime.closed integer Close time for this round; may be omitted.
content.statusChangeTime integer Trigger time of the current lifecycle; updated on reopen; not equivalent to the time of each field modification.
content.cumulativeTime integer Cumulative incident duration in seconds; details/lists calculate it in real time based on the current status, while the write response may contain the saved value.
content.eventCount integer Count of associated events; usually 0 for manual creation.
content.eventUpdateAt integer Last source event update time in Unix seconds; usually 0 for manual creation.
content.dimensionTag object JSON mapping from dimension names to values.
content.dimensionTag.Custom Key JSON Dimension value saved by the caller or source, preferably a string; host/service, etc. have separate index fields.
content.extend object or JSON Incident extension data; automatic sources may include aggregation/event configurations; the public create endpoint currently does not save the passed extend, and only modify can replace it as a whole.
content.extend.linkList array<object> Array of business links, used for display after saving; this API does not access external URLs.
content.extend.linkList[].name string Link display name.
content.extend.linkList[].link string Link address.
content.extend.aggregationRuleUUID string Aggregation source rule UUID; if present, it can be used for filters.aggregationRuleUUID.
content.extend.Custom Field JSON Other saved source extension fields; no fixed structure is guaranteed; copy the complete existing object before replacing it as a whole.
content.dtHost string or null host index dimension, derived from dimensionTag at creation; dimensionTag on the public modify endpoint currently has no effect.
content.dtService string or null service index dimension, derived from dimensionTag at creation; dimensionTag on the public modify endpoint currently has no effect.
content.dtResource string or null resource index dimension, derived from dimensionTag at creation; dimensionTag on the public modify endpoint currently has no effect.
content.dtPodName string or null pod_name index dimension, derived from dimensionTag at creation; dimensionTag on the public modify endpoint currently has no effect.
content.dtAppName string or null app_name index dimension, derived from dimensionTag at creation; dimensionTag on the public modify endpoint currently has no effect.
content.dtAppId string or null app_id index dimension, derived from dimensionTag at creation; dimensionTag on the public modify endpoint currently has no effect.
content.dtEnv string or null env index dimension, derived from dimensionTag at creation; dimensionTag on the public modify endpoint currently has no effect.
content.dtUrl string or null url index dimension, derived from dimensionTag at creation; dimensionTag on the public modify endpoint currently has no effect.
content.eventRelations[].df_fault_id string Event lifecycle ID, generated from the event df_fault_id or compatible df_status_fault_id; not the incident uuid.
content.eventRelations[].status string df_status status of this associated event snapshot, such as critical/ok, different from the incident incidentsStatus.
content.eventRelations[].aggregationValues object Present only when associated by aggregation rule; mapping from aggregation keys to corresponding event dimension values.
content.eventRelations[].aggregationValues.Aggregation Key JSON Value of the dimension specified by the aggregation rule in the event; read it according to the actual saved type.
content.assignerInfo array<object> Summary of successfully resolved assignees; accounts include complete identity fields, groups/notification targets contain only uuid/name, and unknown identifiers may be ignored.
content.assignerInfo[].uuid string Principal UUID; for system reply principals, it may be empty or a system identifier.
content.assignerInfo[].status integer Principal status.
content.assignerInfo[].wsAccountStatus integer Workspace member status; for a Key, it uses the Key status, not the incident status.
content.assignerInfo[].username string Login name/Key name/system name.
content.assignerInfo[].name string Display name; for system AI, the display name uses the site configuration.
content.assignerInfo[].iconUrl string Avatar URL; may be omitted for system summaries.
content.assignerInfo[].email string Contact email; for a Key summary, it may be the Key UUID rather than a deliverable email address.
content.assignerInfo[].mobile string Contact mobile number; may be empty.
content.assignerInfo[].countryCode string Country code; may be omitted for system summaries.
content.assignerInfo[].acntWsNickname string Workspace nickname; may be omitted for system summaries.
content.attachments array<object> Summary of associated attachments; [] if none.
content.attachments[].uuid string Attachment UUID; download through the downloadAttachment API in this module.
content.attachments[].fileName string Original file name.
content.attachments[].fileSuffix string File extension without a dot; file content/direct link is not returned.
content.tagInfo array<object> Summary after resolving tags submitted this time; appears only in response branches that actually assemble this field.
content.tagInfo[].id string Compatible tag ID; same as uuid.
content.tagInfo[].uuid string Tag UUID; used for tags filtering in lists, while name is used for writing.
content.tagInfo[].name string Tag name.
content.tagInfo[].scope array<string> Effective scope; newly created tags currently use monitor; legacy global tags can use all.
content.tagInfo[].scope[] string One of all/scene/monitor/dialing/security/infrastructure/catalog.
content.declaration object or null Workspace common declaration attached to non-empty content; if not configured, it may be null or an empty object; not added for an empty content object.
{
  "code": 200,
  "content": {
    "id": 123,
    "uuid": "incident_example",
    "status": 0,
    "creator": "wsak_example",
    "updator": "wsak_example",
    "createAt": 1785427200,
    "updateAt": 1785427260,
    "deleteAt": -1,
    "workspaceUUID": "wksp_example",
    "name": "Payment service anomaly",
    "level": "system_level_1",
    "description": "Some requests failed",
    "source": "external",
    "resourceCategory": "",
    "resourceType": "",
    "resourceUUID": "",
    "resourceUrl": "https://example.com/runbook",
    "resourceContent": {},
    "eventRelations": [],
    "resourceIdentity": "",
    "assigner": [
      "acnt_example"
    ],
    "incidentsStatus": "working",
    "statusTime": {
      "open": 1785427200,
      "working": 1785427260
    },
    "statusChangeTime": 1785427200,
    "cumulativeTime": 0,
    "eventCount": 0,
    "eventUpdateAt": 0,
    "dimensionTag": {
      "service": "payment"
    },
    "extend": {},
    "dtHost": "",
    "dtResource": "",
    "dtPodName": "",
    "dtAppName": "",
    "dtAppId": "",
    "dtEnv": "",
    "dtUrl": "",
    "dtService": "payment",
    "assignerInfo": [
      {
        "uuid": "acnt_example",
        "name": "Assignee"
      }
    ],
    "attachments": [],
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Responses

Authentication, rate limiting, and common request errors are described in Common Error Definitions.

HTTP Status errorCode Trigger Condition Message or Response Description Handling
406 ft.ParameterValidationFailed Request field is missing, or the field value violates the declared validation conditions Parameter parsing failed Check the parameter location, field name, type, and value.
400 ft.RequestJsonFormatError Request JSON syntax is invalid Request JSON format error Fix 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 an object.
400 ft.IncidentsNotFound Target incident is not in the current workspace or has been deleted Specified incident not found Obtain content.data[].uuid again from the Incident List.
400 ft.TagScopeMismatch The tag being written already has the same name but its scope does not include monitor/all production: ['scene'] -> monitor Choose a monitoring-scope or global tag.
406 ft.ExceedMaxCharacterLimit Tag name exceeds 128 characters {} exceeds the maximum character length limit Shorten the tag name.
500 ft.InternalServerError Database, cache/queue, invalid attachment, unexpanded child field type/historical abnormal structure, or unhandled downstream exception Internal error Read-only requests can be retried with backoff; for write requests, first read the current incident/comment state and notification records, as they may already be committed, to avoid duplicate creation or duplicate notifications.

Feedback

Is this page helpful?