Delete custom operator¶
Delete a custom operator. Deletion is irreversible; please confirm that no workflow needs to use this operator before calling it.
DELETE https://moi.matrixorigin.cn/newmoi/workflow/v2/custom-operators/$OPERATOR_ID
Preparation before calling¶
First query custom operator details to confirm the operator to be deleted. Prepare the personal access token, target workspace ID, and custom operator ID that have access to the target workspace.
Request parameters¶
Request example
curl -X DELETE "https://moi.matrixorigin.cn/newmoi/workflow/v2/custom-operators/$OPERATOR_ID" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
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.
codestring- OK on success.
msgstring- OK on success.
data.deletedboolean- true when deleted successfully.
Successful response example
{
"code": "OK",
"msg": "OK",
"data": {
"deleted": true
}
}
Error response¶
codestring- Error code.
msgstring- Readable error message.
datanull- `null` in an error response.
Error response example
{
"code": "ErrParamInvalid",
"msg": "请求参数无效",
"data": null
}
Follow-up operations¶
Query custom operator list, confirm that the target no longer appears.
Last updated on