Updated on 2024-01-12 GMT+08:00

Deleting Flows

Function

This API is used to delete a flow.

URI

DELETE /v2/{project_id}/fgs/workflows

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

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

Minimum: 1

Maximum: 64

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

workflow_urns

Yes

Array of strings

Flow URNs.

Array Length: 0 - 200

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

success

Array of strings

URNs of successful flows.

Array Length: 0 - 100

fail

Array of OperateErrorInfo objects

Details of failed flows.

Array Length: 0 - 200

Table 4 OperateErrorInfo

Parameter

Type

Description

workflow_urn

String

Unique flow URN.

Minimum: 1

Maximum: 128

error_detail

String

Error details.

Minimum: 1

Maximum: 64

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

Minimum: 1

Maximum: 36

error_msg

String

Error description.

Minimum: 2

Maximum: 512

request_id

String

Request ID.

Minimum: 2

Maximum: 512

Status code: 500

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

Minimum: 1

Maximum: 36

error_msg

String

Error description.

Minimum: 2

Maximum: 512

request_id

String

Request ID.

Minimum: 2

Maximum: 512

Example Requests

Delete function flows with URNs urn:fss:{region}:73d69ae0cfcf460190522d060f05ad:workflow:default:testflow1:latest and urn:fss:{region}:73d69ae0cfcf460190522d060f05ad:workflow:default:testflow2:latest.

DELETE /v2/{project_id}/fgs/workflows

{
  "workflow_urns" : [ "urn:fss:{region}:73d69ae0cfcf460190522d060f05ad:workflow:default:testflow1:latest", "urn:fss:{region}:73d69ae0cfcf460190522d060f05ad:workflow:default:testflow2:latest" ]
}

Example Responses

None

Status Codes

Status Code

Description

200

Success

400

Bad Request

500

Internal Server Error

Error Codes

See Error Codes.