router/api-router.go:275。controller.SetTaskPluginStatus,controller/task_plugin.go:551。plugin:write。同时需要满足接口的角色和业务要求。Authorization: Bearer ********************curl --location '/api/plugin/task//status?cascade=&force=' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"enabled": true,
"property1": "string",
"property2": "string"
}'{
"data": {
"channels": [
{
"id": 0,
"name": "string",
"type": 0,
"property1": "string",
"property2": "string"
}
],
"in_flight_count": 0,
"property1": "string",
"property2": "string"
},
"message": "string",
"success": true,
"property1": "string",
"property2": "string"
}