Delete custom operator

Delete a custom operator. Deletion is irreversible; please confirm that no workflow needs to use this operator before calling it.

HTTP
DELETE $CLOUDSIGMA_API_BASE/workflow/v2/custom-operators/$OPERATOR_ID

Before you call this API

Configure the regional API endpoint and authentication, and select the target workspace.

First query custom operator details to confirm the operator to be deleted.

Request

Shell
curl -X DELETE "$CLOUDSIGMA_API_BASE/workflow/v2/custom-operators/$OPERATOR_ID" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Request parameters

Successful response

Response confirms that the operator has been deleted. After deletion, the operator can no longer be queried, modified or used.

The response fields are as follows.

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "deleted": true
  }
}
FieldTypeDescription
codestringOK on success.
msgstringOK on success.
data.deletedbooleantrue when deleted successfully.

Error response

JSON
{
  "code": "ErrParamInvalid",
  "msg": "请求参数无效",
  "data": null
}
FieldTypeDescription
codestringError code.
msgstringReadable error message.
datanull`null` in an error response.

Follow-up operations

Query custom operator list, confirm that the target no longer appears.

Last updated on