{"record":{"id":"2cb87b7a0990ca03","repo":"mem0ai/mem0","slug":"org-id-and-project-id-must-be-set-to-update-instru","errorCode":null,"errorMessage":"org_id and project_id must be set to update instructions or categories","messagePattern":"org_id and project_id must be set to update instructions or categories","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"mem0/client/main.py","lineNumber":758,"sourceCode":"            custom_instructions: New instructions for the project.\n            custom_categories: New categories for the project.\n            memory_depth: Memory depth for the project.\n            usecase_setting: Usecase setting for the project.\n            multilingual: Whether to use the input language for memory storage and retrieval.\n            agent_custom_instructions: New extraction instructions for agent-scoped memories.\n\n        Returns:\n            Dictionary containing the API response.\n\n        Raises:\n            ValueError: If org_id or project_id are not set, or no update fields provided.\n        \"\"\"\n        logger.warning(\n            \"update_project() method is going to be deprecated in version v1.0 of the package. \"\n            \"Please use the client.project.update() method instead.\"\n        )\n        if not (self.org_id and self.project_id):\n            raise ValueError(\"org_id and project_id must be set to update instructions or categories\")\n\n        kwargs = {\n            **(options.model_dump(exclude_unset=True) if options else {}),\n            **{\n                k: v\n                for k, v in {\n                    \"custom_instructions\": custom_instructions,\n                    \"custom_categories\": custom_categories,\n                    \"memory_depth\": memory_depth,\n                    \"usecase_setting\": usecase_setting,\n                    \"multilingual\": multilingual,\n                    \"agent_custom_instructions\": agent_custom_instructions,\n                }.items()\n                if v is not None\n            },\n        }\n\n        if not kwargs:","sourceCodeStart":740,"sourceCodeEnd":776,"githubUrl":"https://github.com/mem0ai/mem0/blob/001c235229be8795e3834520467bd0d661ed8f34/mem0/client/main.py#L740-L776","documentation":"Error \"org_id and project_id must be set to update instructions or categories\" thrown in mem0ai/mem0.","triggerScenarios":"Thrown at mem0/client/main.py:758 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Initialize MemoryClient with org_id and project_id before updating instructions or categories."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"001c235229be8795e3834520467bd0d661ed8f34","analyzedAt":"2026-08-15T01:55:42.685Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}