> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mem0.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Project

> Update a project's settings, including name, custom instructions, and other configuration options.



## OpenAPI

````yaml patch /api/v1/orgs/organizations/{org_id}/projects/{project_id}/
openapi: 3.0.1
info:
  title: Mem0 API Docs
  description: mem0.ai API Docs
  contact:
    email: support@mem0.ai
  license:
    name: Apache 2.0
  version: v1
servers:
  - url: https://api.mem0.ai/
security:
  - ApiKeyAuth: []
paths:
  /api/v1/orgs/organizations/{org_id}/projects/{project_id}/:
    patch:
      tags:
        - projects
      summary: Update Project
      description: Update a specific project's settings.
      operationId: update_project
      parameters:
        - name: org_id
          in: path
          required: true
          description: Unique identifier of the organization.
          schema:
            type: string
        - name: project_id
          in: path
          required: true
          description: Unique identifier of the project to be updated.
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Name of the project
                description:
                  type: string
                  description: Description of the project
                custom_instructions:
                  type: array
                  items:
                    type: string
                  description: Custom instructions for memory processing in this project
                custom_categories:
                  type: array
                  items:
                    type: object
                  description: >-
                    List of custom categories to be used for memory
                    categorization.
                multilingual:
                  type: boolean
                  description: >-
                    Whether to use the input language for memory storage and
                    retrieval.
      responses:
        '200':
          description: Project updated successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Project updated successfully
        '404':
          description: Organization or project not found.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Organization or project not found
      x-code-samples:
        - lang: Python
          source: |-
            # To use the Python SDK, install the package:
            # pip install mem0ai

            from mem0 import MemoryClient

            client = MemoryClient(api_key="your_api_key")

            new_categories = [
                {"cooking": "For users interested in cooking and culinary experiences"},
                {"fitness": "Includes content related to fitness and workouts"}
            ]

            response = client.update_project(custom_categories=new_categories)
            print(response)
        - lang: JavaScript
          source: |-
            // To use the JavaScript SDK, install the package:
            // npm i mem0ai

            import MemoryClient from 'mem0ai';
            const client = new MemoryClient({ apiKey: "your-api-key" });

            const newCategories = [
                {"cooking": "For users interested in cooking and culinary experiences"},
                {"fitness": "Includes content related to fitness and workouts"}
            ];

            client.updateProject({ custom_categories: newCategories })
              .then(response => console.log(response))
              .catch(err => console.error(err));
        - lang: cURL
          source: |-
            curl --request PATCH \
              --url https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/projects/{project_id}/ \
              --header 'Authorization: Token <api-key>' \
              --header 'Content-Type: application/json' \
              --data '{
                "custom_categories": [
                  {"cooking": "For users interested in cooking and culinary experiences"},
                  {"fitness": "Includes content related to fitness and workouts"}
                ]
              }'
        - lang: Go
          source: "// To use the Go SDK, install the package:\n// go get github.com/mem0ai/mem0-go\n\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/mem0ai/mem0-go\"\n)\n\nfunc main() {\n\tclient := mem0.NewClient(\"your-api-key\")\n\n\tnewCategories := []map[string]string{\n\t\t{\"cooking\": \"For users interested in cooking and culinary experiences\"},\n\t\t{\"fitness\": \"Includes content related to fitness and workouts\"},\n\t}\n\n\tresponse, err := client.UpdateProject(mem0.UpdateProjectParams{\n\t\tCustomCategories: newCategories,\n\t})\n\tif err != nil {\n\t\tfmt.Printf(\"Error: %v\\n\", err)\n\t\treturn\n\t}\n\tfmt.Printf(\"%+v\\n\", response)\n}"
        - lang: PHP
          source: |-
            <?php
            // To use the PHP SDK, install the package:
            // composer require mem0ai/mem0-php

            require_once('vendor/autoload.php');

            use Mem0\MemoryClient;

            $client = new MemoryClient('your-api-key');

            $newCategories = [
                ['cooking' => 'For users interested in cooking and culinary experiences'],
                ['fitness' => 'Includes content related to fitness and workouts']
            ];

            try {
                $response = $client->updateProject(['custom_categories' => $newCategories]);
                print_r($response);
            } catch (Exception $e) {
                echo 'Error: ' . $e->getMessage();
            }
        - lang: Java
          source: |-
            // To use the Java SDK, add this dependency to your pom.xml:
            // <dependency>
            //     <groupId>ai.mem0</groupId>
            //     <artifactId>mem0-java</artifactId>
            //     <version>1.0.0</version>
            // </dependency>

            import ai.mem0.MemoryClient;
            import java.util.*;

            public class Example {
                public static void main(String[] args) {
                    MemoryClient client = new MemoryClient("your-api-key");
                    
                    List<Map<String, String>> newCategories = Arrays.asList(
                        Collections.singletonMap("cooking", "For users interested in cooking and culinary experiences"),
                        Collections.singletonMap("fitness", "Includes content related to fitness and workouts")
                    );
                    
                    try {
                        Map<String, Object> params = new HashMap<>();
                        params.put("custom_categories", newCategories);
                        
                        Object response = client.updateProject(params);
                        System.out.println(response);
                    } catch (Exception e) {
                        System.err.println("Error: " + e.getMessage());
                    }
                }
            }
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        API key authentication. Prefix your Mem0 API key with 'Token '. Example:
        'Token your_api_key'

````