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

# Update an organization

> Changes the name, description, rate limit or free-form settings of an organization. Fields left out are unchanged. Owners and admins only. Responds 422 when the body is not accepted.



## OpenAPI

````yaml /api-reference/cloud-platform-openapi.json put /v1/organizations/{org_id}
openapi: 3.1.0
info:
  description: Account, organization, workspace and billing routes of NEAR AI Cloud.
  title: NEAR AI Cloud Platform API
  version: '5'
servers:
  - url: https://cloud-platform.near.ai
    description: NEAR AI Cloud Platform
security: []
paths:
  /v1/organizations/{org_id}:
    put:
      tags:
        - Organizations
      summary: Update an organization
      description: >-
        Changes the name, description, rate limit or free-form settings of an
        organization. Fields left out are unchanged. Owners and admins only.
        Responds 422 when the body is not accepted.
      operationId: update_organization
      parameters:
        - description: The organization id (a UUID).
          in: path
          name: org_id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateOrganizationRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationResponse'
          description: The updated organization.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The request is invalid.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Missing or invalid credential.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The caller is not allowed to do this.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The resource does not exist.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The request conflicts with existing data.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The request body is not accepted.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal error.
      security:
        - session: []
components:
  schemas:
    UpdateOrganizationRequest:
      additionalProperties: false
      description: Request to update an organization
      properties:
        description:
          description: >-
            New description, up to 10240 characters. Omit to keep the current
            one.
          type:
            - string
            - 'null'
        name:
          description: New name, 1 to 255 characters. Omit to keep the current name.
          type:
            - string
            - 'null'
        rate_limit:
          description: >-
            Requests-per-minute limit for the organization; must be positive.
            Omit to keep the current value.
          format: int32
          type:
            - integer
            - 'null'
        settings:
          description: >-
            A JSON object of free-form organization settings, at most 32 KiB
            when serialized. Omit to keep the current settings.
          type:
            - object
            - 'null'
      type: object
    OrganizationResponse:
      description: An organization.
      properties:
        created_at:
          format: date-time
          type: string
        description:
          type:
            - string
            - 'null'
        id:
          type: string
        is_active:
          type: boolean
        name:
          type: string
        owner_id:
          type: string
        role:
          $ref: '#/components/schemas/MemberRole'
        settings: {}
        updated_at:
          format: date-time
          type: string
      required:
        - id
        - name
        - owner_id
        - settings
        - role
        - is_active
        - created_at
        - updated_at
      type: object
    ErrorResponse:
      description: The body of every error answer on the user routes.
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      type: object
    MemberRole:
      description: Member role enum for API
      enum:
        - owner
        - admin
        - member
      type: string
    ErrorDetail:
      properties:
        code:
          type:
            - string
            - 'null'
        message:
          type: string
        param:
          type:
            - string
            - 'null'
        type:
          type: string
      required:
        - message
        - type
      type: object
  securitySchemes:
    session:
      bearerFormat: Session token
      description: 'Session token from signing in, sent as `Authorization: Bearer <token>`.'
      scheme: bearer
      type: http

````

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