Updated on 2025-10-29 GMT+08:00

Deleting a Workflow

Function

This API is used to delete a workflow.

Calling Method

For details, see Calling APIs.

URI

DELETE /v1/{project_id}/workspaces/{workspace_id}/soc/workflows/{workflow_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID, which is used to specify the project that a resource belongs to. You can query the resources of a project by project ID. You can obtain the project ID from the API or console. Obtaining the Project ID

Constraints

N/A

Range

N/A

Default Value

N/A

workspace_id

Yes

String

Definition

Workspace ID.

Range

N/A

workflow_id

Yes

String

Definition

Workflow ID.

Range

N/A

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition

User token. You can obtain it by calling the IAM API for obtaining a user token. The user token is the value of X-Subject-Token in the response header. Obtaining a User Token

Constraints

N/A

Range

N/A

Default Value

N/A

content-type

Yes

String

Definition

Content type.

  • application/json;charset=UTF-8: common API request type

Constraints

N/A

Range

  • application/json;charset=UTF-8

Default Value

N/A

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

code

String

Definition

Error code.

Range

N/A

message

String

Definition

Error description.

Range

N/A

success

Boolean

Definition

Whether the request is successful.

Range

  • true: successful

  • false: failed

request_id

String

Definition

Request ID.

Constraints

N/A

data

AopWorkflowInfo object

Workflow details.

Table 4 AopWorkflowInfo

Parameter

Type

Description

id

String

Definition

Workflow ID.

Range

N/A

name

String

Definition

Workflow name.

Range

N/A

description

String

Definition

Workflow description.

Range

N/A

project_id

String

Definition

Tenant ID.

Range

N/A

owner_id

String

Definition

Owner ID.

Range

N/A

creator_id

String

Definition

Creator ID.

Range

N/A

creator_name

String

Definition

Name of the creator.

Range

N/A

create_time

String

Definition

Creation time.

Range

N/A

modifier_id

String

Definition

ID of the updater.

Range

N/A

modifier_name

String

Definition

Name of the updater.

Range

N/A

update_time

String

Definition

Update time.

Range

N/A

edit_role

String

Definition

Editing a Role

Range

N/A

use_role

String

Definition

User role.

Range

N/A

approve_role

String

Definition

Review role.

Range

N/A

enabled

Boolean

Definition

Enabled or not.

Range

  • true: enabled

  • false: disabled

workspace_id

String

Definition

Workspace ID.

Range

N/A

version_id

String

Definition

ID of the activated workflow version.

Range

N/A

current_approval_version_id

String

Definition

ID of the version to be reviewed.

Range

N/A

current_rejected_version_id

String

Definition

ID of the rejected version.

Range

N/A

aop_type

String

Definition

Workflow type.

  • NORMAL: general

  • SURVEY: investigation

  • HEMOSTASIS: prevention

  • EASE: mitigation

Range

  • NORMAL

  • SURVEY

  • HEMOSTASIS

  • EASE

engine_type

String

Definition

Engine type.

  • public_engine: shared version

Range

  • public_engine

dataclass_id

String

Definition

Data class ID.

Range

N/A

dataclass_name

String

Definition

Data class name.

Range

N/A

labels

String

Definition

Workflow entity type.

  • IP: IP address

  • ACCOUNT: account

  • DOMAIN: domain name

Range

  • IP

  • ACCOUNT

  • DOMAIN

version

String

Definition

Version of the activated workflow.

Range

N/A

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

code

String

Definition

Error code.

Range

N/A

message

String

Definition

Error description.

Range

N/A

Example Requests

Delete the workflow with ID 89262e34-4e5f-4cb2-9308-0b30e3d6e778.

https://{endpoint}/v1/{project_id}/workspaces/{workspace_id}/soc/workflows/89262e34-4e5f-4cb2-9308-0b30e3d6e778

Example Responses

Status code: 200

Response to the request for deleting a workflow.

{
  "code" : "00000000",
  "data" : {
    "aop_type" : "NORMAL",
    "approve_role" : "",
    "create_time" : "2025-07-18T11:28:27.000Z+0800",
    "creator_id" : "5857617f6b8b4981baef587c08ab8b68",
    "creator_name" : "XXX",
    "current_approval_version_id" : "",
    "current_rejected_version_id" : "",
    "dataclass_id" : "e410ae50-43fa-343e-807a-a2a9edb8018e",
    "dataclass_name" : "",
    "description" : "desc",
    "edit_role" : "",
    "enabled" : false,
    "engine_type" : "public_engine",
    "id" : "89262e34-4e5f-4cb2-9308-0b30e3d6e778",
    "labels" : "IP",
    "modifier_id" : "5857617f6b8b4981baef587c08ab8b68",
    "modifier_name" : "XXX",
    "name" : "test001",
    "owner_id" : "",
    "project_id" : "f69081793d9e4ea8a2f479dcef961989",
    "update_time" : "2025-07-18T14:49:08.603Z+0800",
    "use_role" : "",
    "version" : "",
    "version_id" : "",
    "workspace_id" : "f44065f5-557b-4376-ae02-8c65ef1960f4"
  },
  "message" : "",
  "request_id" : "",
  "success" : true
}

Status Codes

Status Code

Description

200

Response to the request for deleting a workflow.

400

Abnormal response.

Error Codes

See Error Codes.