Delete custom operator

Delete a custom operator. This interface does not provide recovery operations. Before calling, please confirm that no workflow needs to use this operator anymore.

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

Before you call

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First query the custom operator list, select an operator and obtain the custom operator ID. Then Query the custom operator details to confirm deletion of the object. Prepare personal access token and target workspace ID that can access the target workspace.

Path parameters

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"

Field

Type

Required

Description

operator_id

integer

Required

Custom operator ID to delete.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "deleted": true
  }
}

Field

Type

Required

Description

code

string

No

OK on success.

msg

string

No

OK on success.

data.deleted

boolean

No

true when deleted successfully.

Error response

JSON
{
  "code": "ErrParamInvalid",
  "msg": "请求参数无效"
}

Field

Type

Required

Description

code

string

No

error code.

msg

string

No

Readable error message.

Common HTTP errors

HTTP status

Error code

Common cause

Recommended action

400

ErrParamInvalid, ErrWorkspaceRequired

Invalid request field, workspace, or operation precondition.

Fix the request parameters and submit again.

403

ErrForbidden

The current identity or active role does not have permission for this operation.

Use an authorized identity or contact an administrator to grant access.

404

ErrNotFound

The target object or required reference was not found.

Verify the object identifier, workspace, and current status.

500

ErrServer

Internal processing failed; write operations may have been partially applied.

Retain request and trace details, and verify the current state before retrying.

503

ErrServiceUnavailable

A business, runtime, or authorization dependency is temporarily unavailable.

After the dependency recovers, check existing results first instead of blindly repeating writes.

Last updated on