Updated on 2026-10-27 GMT+08:00

Deleting a Function Flow

Function

This API is used to delete a flow.

Calling Method

For details, see Calling APIs.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.

URI

PUT /v1/{project_id}/ffs/graphs

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID. For details, see Obtaining a Project ID.

Constraints

N/A.

Range

The value contains 32 characters. Only letters and digits are allowed.

Default Value

N/A.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

x-cloud-service

No

Boolean

User tags.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

action

No

String

Definition

Operation method.

Constraints

N/A

Range

N/A

Default Value

N/A

graphs

No

Array of strings

Definition

IDs of flows to be operated.

Constraints

N/A

Range

N/A

Default Value

N/A

Response Parameters

Status code: 201

Table 4 Response body parameters

Parameter

Type

Description

success

Array of strings

Definition

URNs of the function flows that are successfully operated.

Range

N/A

fail

Array of OperateErrorInfo objects

Definition

URNs of the function flows that failed to be deleted.

Range

N/A

Table 5 OperateErrorInfo

Parameter

Type

Description

workflow_urn

String

Definition

Flow URN.

Range

N/A

error_detail

String

Definition

Error details.

Range

N/A

error_code

String

Definition

Error code.

Range

N/A

error_msg

String

Definition

Error description.

Range

N/A

graph_id

String

Definition

Flow URN.

Range

N/A

Status code: 400

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error description.

request_id

String

Request ID.

Status code: 500

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error description.

request_id

String

Request ID.

Example Requests

None

Example Responses

Status code: 201

{
  "success" : [ "1" ],
  "fail" : [ {
    "error_detail" : "graph not found:bb69de22-f30e-42ae-97ed-6e1658c18f06",
    "workflow_urn" : "bb69de22-f30e-42ae-97ed-6e1658c18f06"
  } ]
}

Status Codes

Status Code

Description

201

Created

400

Bad Request

500

Internal Server Error

Error Codes

See Error Codes.