{"record":{"id":"ffe15fe75e048aaf","repo":"Significant-Gravitas/AutoGPT","slug":"no-values-were-passed-to-update","errorCode":null,"errorMessage":"No values were passed to update","messagePattern":"No values were passed to update","errorType":"validation","errorClass":"ValueError","httpStatus":400,"severity":"error","filePath":"autogpt_platform/backend/backend/api/features/library/db.py","lineNumber":1002,"sourceCode":"    if graph_version is not None:\n        # Apply any other field updates first so they aren't lost\n        if update_fields:\n            await prisma.models.LibraryAgent.prisma().update_many(\n                where={\"id\": library_agent_id, \"userId\": user_id},\n                data=update_fields,\n            )\n        # Get the current agent to find its graph_id\n        agent = await get_library_agent(id=library_agent_id, user_id=user_id)\n        # Update to the specified version using existing function\n        return await update_agent_version_in_library(\n            user_id=user_id,\n            agent_graph_id=agent.graph_id,\n            agent_graph_version=graph_version,\n        )\n\n    # Otherwise, just update the simple fields\n    if not update_fields:\n        raise ValueError(\"No values were passed to update\")\n\n    n_updated = await prisma.models.LibraryAgent.prisma().update_many(\n        where={\"id\": library_agent_id, \"userId\": user_id},\n        data=update_fields,\n    )\n    if n_updated < 1:\n        raise NotFoundError(f\"Library agent {library_agent_id} not found\")\n\n    return await get_library_agent(\n        id=library_agent_id,\n        user_id=user_id,\n    )\n\n\nasync def delete_library_agent(\n    library_agent_id: str, user_id: str, soft_delete: bool = True\n) -> None:\n    # First get the agent to find the graph_id for cleanup","sourceCodeStart":984,"sourceCodeEnd":1020,"githubUrl":"https://github.com/Significant-Gravitas/AutoGPT/blob/9c8bb5550f446ba5d3046b78896578742495b3cf/autogpt_platform/backend/backend/api/features/library/db.py#L984-L1020","documentation":"Error \"No values were passed to update\" thrown in Significant-Gravitas/AutoGPT.","triggerScenarios":"Thrown at autogpt_platform/backend/backend/api/features/library/db.py:1002 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include at least one field to update in the request body.","Check the client is serializing the update payload correctly."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9c8bb5550f446ba5d3046b78896578742495b3cf","analyzedAt":"2026-08-14T17:17:21.957Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}