更新模块管理偏好设置

OpenAPI 契约

方法
PATCH
路径
/api/v1/processors/modules/preferences
认证
jwtBearer (bearer) OR automationKey (bearer)
响应状态
200 400 401 403 404 429 500
请求与响应 Schema
JSON
{
  "requestBody": {
    "application/json": {
      "$ref": "#/components/schemas/UpdateModulePreferencesRequest"
    }
  },
  "responses": {
    "200": {
      "description": "Updated Module Management preferences",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/ModulePreferencesResponse"
        }
      }
    },
    "400": {
      "description": "Invalid request",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/RequestError"
        }
      }
    },
    "401": {
      "description": "Authentication required or invalid",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/SecurityError"
        }
      }
    },
    "403": {
      "description": "Authenticated but not permitted",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/SecurityError"
        }
      }
    },
    "404": {
      "description": "Requested processor preset was not found",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/ApiError"
        }
      }
    },
    "429": {
      "description": "Rate limit exceeded",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/SecurityError"
        }
      }
    },
    "500": {
      "description": "Unexpected server error",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/ApiError"
        }
      }
    }
  }
}

PATCH /api/v1/processors/modules/preferences 接受带有 processor:write 权限的 JWT 或 nfy_ 密钥。提供任一字段即可更新该字段,而不会替换另一个字段。activeProfileId 必须标识调用者拥有的配置文件。

http
PATCH /api/v1/processors/modules/preferences
Authorization: Bearer <access token>
Content-Type: application/json

{"autoSaveEnabled":false,"activeProfileId":"00000000-0000-0000-0000-000000000000"}