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

# Update project

> Renames a project. To change its plan or its Meilisearch version, use the dedicated routes.



## OpenAPI

````yaml /assets/cloud-assets/meilisearch-cloud-openapi-mintlify.json patch /api/v2/projects/{id}
openapi: 3.0.1
info:
  title: Meilisearch Cloud API V2
  version: v2
  contact:
    name: Meilisearch support
    email: support@meilisearch.com
  description: >-
    Manages Meilisearch Cloud organizations, teams and projects. Request and
    response fields are camelCase.


    ## Authentication


    Send `Authorization: Bearer <token>` with a Personal Access Token or an
    OAuth2 access token. OAuth2 tokens need the `read` scope for GET requests
    and `write` for every other method. See
    [Authentication](https://www.meilisearch.com/docs/reference/management-api/authentication).


    ## Pagination


    List endpoints take `offset` and `limit` and return `{ results, offset,
    limit, total }`.


    ## Errors


    Every non-2xx response has the `Error` body. Read its `code` field to know
    the exact error. Each operation documents the statuses it can answer. Every
    endpoint can also answer:


    - `400` `invalid_id`: an id in the path or the query is not an integer.

    - `400` `invalid_body`: the body is not valid JSON.

    - `400` `unknown_field`: the body has a field the endpoint does not accept.

    - `400` `invalid_offset`, `invalid_limit`: invalid pagination parameter on a
    list endpoint.

    - `401` `missing_authorization_header`, `invalid_token`: no token, or an
    invalid, expired or revoked one.

    - `403` `forbidden`: the OAuth2 token does not have the scope the method
    needs.

    - `429` `rate_limited`: over 30 requests per minute per token. Retry after
    the number of seconds in the `Retry-After` header.

    - `500` `internal`: unexpected error.
servers:
  - url: https://api.meilisearch.com
security:
  - personal_access_token: []
  - oauth2:
      - read
      - write
tags:
  - name: Authentication
    description: Identity of the token owner.
  - name: Organizations
    description: Organizations hold teams and billing.
  - name: Teams
    description: Teams hold projects and members.
  - name: Projects
    description: Meilisearch instances.
  - name: Cost monitoring
    description: Usage and estimated cost of projects.
  - name: Regions
    description: Regions where a project can be created.
  - name: Resources
    description: Machine sizes and their plans, to create a project or change its plan.
  - name: Meilisearch Versions
    description: Meilisearch versions a project can run.
paths:
  /api/v2/projects/{id}:
    parameters:
      - name: id
        in: path
        schema:
          type: integer
          minimum: 0
        description: Id of the project.
        required: true
    patch:
      tags:
        - Projects
      summary: Update project
      description: >-
        Renames a project. To change its plan or its Meilisearch version, use
        the dedicated routes.
      operationId: updateProject
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: New name of the project, between 3 and 40 characters.
                  example: my-project
        required: true
      responses:
        '200':
          description: Project updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Project'
        '400':
          description: Bad Request
          content:
            application/json:
              examples:
                unknown_field:
                  value:
                    message: >-
                      The request body contains a field this route does not
                      accept.
                    code: unknown_field
                    type: invalid_request
                    link: >-
                      https://www.meilisearch.com/docs/reference/management-api-errors#unknown_field
                    details:
                      - field: resourceId
                        code: unknown
                        message: >-
                          The request body contains a field this route does not
                          accept.
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              examples:
                invalid_token:
                  value:
                    message: The provided token is invalid.
                    code: invalid_token
                    type: auth
                    link: >-
                      https://www.meilisearch.com/docs/reference/management-api-errors#invalid_token
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not Found
          content:
            application/json:
              examples:
                project_not_found:
                  value:
                    message: Project not found.
                    code: project_not_found
                    type: invalid_request
                    link: >-
                      https://www.meilisearch.com/docs/reference/management-api-errors#project_not_found
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Unprocessable Content
          content:
            application/json:
              examples:
                validation_failed:
                  value:
                    message: The request contains invalid values.
                    code: validation_failed
                    type: invalid_request
                    link: >-
                      https://www.meilisearch.com/docs/reference/management-api-errors#validation_failed
                    details:
                      - field: name
                        code: invalid
                        message: The request contains invalid values.
                      - field: name
                        code: invalid
                        message: The request contains invalid values.
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - personal_access_token: []
        - oauth2:
            - write
      x-codeSamples:
        - lang: cURL
          label: HTTP request
          source: |-
            curl \
              -X PATCH 'https://api.meilisearch.com/api/v2/projects/343' \
              -H 'Authorization: Bearer MANAGEMENT_API_TOKEN' \
              -H 'Content-Type: application/json' \
              --data-binary '{
                "name": "my-project"
              }'
        - lang: cURL
          label: Meili CLI
          source: meili project update --id 343 --name my-project
components:
  schemas:
    Project:
      type: object
      properties:
        id:
          type: integer
          description: Id of the project.
          example: 56
        name:
          type: string
          description: Name of the project.
          example: my-project
        projectUid:
          type: string
          description: Unique identifier of the project, used in its URL.
          example: ms-1a2b3c4d5e6f-1234
        url:
          type: string
          nullable: true
          description: >-
            URL of the Meilisearch instance. `null` until its DNS record is
            ready.
          example: https://ms-1a2b3c4d5e6f-1234.fra.meilisearch.io
        masterKey:
          type: string
          description: Only returned on project creation and master key endpoints.
          example: b9f0c3d2e1a4f5b6c7d8e9f0a1b2c3d4
        teamId:
          type: integer
          description: Id of the team of the project.
          example: 34
        resourceId:
          type: integer
          description: Id of the resource of the project.
          example: 7
        msVersion:
          type: string
          description: Meilisearch version of the instance.
          example: v1.54.0
        readOnly:
          type: boolean
          description: Whether the instance only accepts read requests.
          example: false
        status:
          type: string
          enum:
            - creating
            - waiting_for_end_of_dns_ttl
            - health_checking
            - running
            - changing_plan
            - updating
            - restoring
            - failed
            - update_failed
            - paused
          description: State of the instance.
          example: running
        paused:
          type: boolean
          description: Whether the instance is paused.
          example: false
        createdAt:
          type: string
          format: date-time
          description: Creation date of the project.
          example: '2026-01-15T09:30:00Z'
        terminatedAt:
          type: string
          format: date-time
          nullable: true
          example: null
          description: Termination date of the project. `null` for an active project.
        freeTrialEndsAt:
          type: string
          format: date-time
          nullable: true
          example: null
          description: End date of the free trial. `null` outside a free trial.
        resource:
          $ref: '#/components/schemas/Resource'
      required:
        - id
        - name
        - projectUid
        - teamId
        - resourceId
        - msVersion
        - readOnly
        - status
        - paused
        - createdAt
        - resource
    Error:
      type: object
      description: >-
        Error body returned by every non-2xx response. Switch on `code`, never
        on `message`.
      properties:
        message:
          type: string
          description: Human-readable description of the error.
          example: Project not found.
        code:
          type: string
          description: Stable snake_case identifier of the error.
          example: project_not_found
        type:
          type: string
          enum:
            - invalid_request
            - auth
            - internal
          description: Category of the error, derived from the HTTP status.
          example: invalid_request
        link:
          type: string
          format: uri
          description: Documentation of this error code.
          example: >-
            https://www.meilisearch.com/docs/reference/management-api-errors#project_not_found
        details:
          type: array
          description: >-
            Request fields the error is about. Present whenever the error
            involves request fields.
          items:
            type: object
            properties:
              field:
                type: string
                description: Name of the field, in camelCase.
                example: name
              code:
                type: string
                description: Reason the field was rejected, e.g. `missing` or `unknown`.
                example: blank
              message:
                type: string
                description: Human-readable description of the problem.
                example: Name can't be blank
            required:
              - field
              - code
              - message
      required:
        - message
        - code
        - type
        - link
    Resource:
      type: object
      description: A machine size in a region, and the plan it belongs to.
      properties:
        id:
          type: integer
          description: Id of the resource.
          example: 7
        name:
          type: string
          description: Name of the machine size.
          example: XS
        displayName:
          type: string
          nullable: true
          description: Name shown in the Cloud UI.
          example: XS
        plan:
          type: string
          enum:
            - legacy
            - build_plan
            - pro_plan
            - custom_plan
            - grow_plan
            - free_trial
            - enterprise_plan
            - resource_based_plan
          description: Plan of the resource.
          example: resource_based_plan
        regionId:
          type: integer
          description: Id of the region of the resource.
          example: 3
        storage:
          type: number
          nullable: true
          description: Disk size of the machine.
          example: 32
        memory:
          type: number
          nullable: true
          description: Memory of the machine.
          example: 1
        vcpu:
          type: number
          nullable: true
          description: Number of vCPUs of the machine.
          example: 0.5
        fullPlan:
          type: object
          nullable: true
          description: >-
            Plan and pricing of the resource. `null` when the resource has no
            public plan.
          properties:
            id:
              type: integer
              description: Id of the plan.
              example: 5
            name:
              type: string
              description: Name of the plan.
              example: Resource-based XS
            code:
              type: string
              description: Stable identifier of the plan.
              example: resource_based_xs
            features:
              type: array
              items:
                $ref: '#/components/schemas/PlanFeature'
              description: Billed features of the plan.
          required:
            - id
            - name
            - code
            - features
      required:
        - id
        - name
        - plan
        - regionId
    PlanFeature:
      type: object
      description: A billed feature of a plan, with its price.
      properties:
        id:
          type: integer
          description: Id of the feature.
          example: 101
        name:
          type: string
          description: Name of the feature.
          example: Instance runtime
        kind:
          type: string
          enum:
            - base
            - search
            - document
            - storage
            - instance_runtime
            - chat_token
            - bandwidth
            - backup
          description: What the feature bills.
          example: instance_runtime
        stripePriceId:
          type: string
          nullable: true
          description: Id of the Stripe price of the feature.
          example: price_1Nx2yZ3aBcDeFgHi
        enabled:
          type: boolean
          description: Whether the feature is enabled.
          example: true
        nickname:
          type: string
          nullable: true
          description: Short name of the price.
          example: XS
        description:
          type: string
          nullable: true
          description: Description of the billed product.
          example: Hourly runtime of the instance.
        productName:
          type: string
          nullable: true
          description: Name of the billed product.
          example: Meilisearch Cloud instance
        unitPrice:
          type: number
          nullable: true
          description: Price of one unit, in USD.
          example: 0.05
        monthlyEstimation:
          type: number
          nullable: true
          example: 36.5
          description: >-
            Estimated monthly price, in USD, for the base fee and the instance
            runtime.
        transformQuantity:
          type: object
          nullable: true
          description: >-
            Billed per package of units: the quantity is divided by `divideBy`
            before applying `unitPrice`.
          properties:
            divideBy:
              type: integer
              description: Number of units in a package.
              example: 1000
            round:
              type: string
              enum:
                - up
                - down
              description: How the number of packages is rounded.
              example: up
      required:
        - id
        - name
        - kind
        - enabled
        - stripePriceId
  securitySchemes:
    personal_access_token:
      type: http
      scheme: bearer
      description: >-
        Send `Authorization: Bearer <token>`, where `<token>` is a personal
        access token (PAT) or an OAuth2 access token. A PAT authenticates as the
        user who owns it. See
        [Authentication](https://www.meilisearch.com/docs/reference/management-api/authentication).
    oauth2:
      type: oauth2
      description: >-
        OAuth2 authorization code flow with PKCE, for partner applications
        acting on behalf of a user. Send the user to the authorization URL in
        their browser. `read` allows GET requests, `write` allows every other
        method. See
        [Authentication](https://www.meilisearch.com/docs/reference/management-api/authentication).
      flows:
        authorizationCode:
          authorizationUrl: https://cloud.meilisearch.com/oauth/authorize
          tokenUrl: https://api.meilisearch.com/oauth/token
          refreshUrl: https://api.meilisearch.com/oauth/token
          scopes:
            read: Read access (GET requests)
            write: Write access (all other requests)

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.