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

# Update Organization Entity

> Update an organization's entity wiring (multi-entity 044): parent link,
ownership %, functional currency, entity type. Admin-only; cycle-guarded.



## OpenAPI

````yaml /api/openapi-cutmake.json patch /organizations/{org_id}
openapi: 3.1.0
info:
  title: VM App API
  version: 0.1.0
servers:
  - url: https://vinmake-erp.onrender.com
security: []
paths:
  /organizations/{org_id}:
    patch:
      tags:
        - Organizations
      summary: Update Organization Entity
      description: >-
        Update an organization's entity wiring (multi-entity 044): parent link,

        ownership %, functional currency, entity type. Admin-only;
        cycle-guarded.
      operationId: update_organization_entity_organizations__org_id__patch
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
            title: Org Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrganizationEntityUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationResponse'
        '404':
          description: Not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    OrganizationEntityUpdate:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        parentOrgId:
          anyOf:
            - type: string
            - type: 'null'
          title: Parentorgid
        ownershipPct:
          anyOf:
            - type: number
            - type: 'null'
          title: Ownershippct
        functionalCurrency:
          anyOf:
            - type: string
            - type: 'null'
          title: Functionalcurrency
        entityType:
          anyOf:
            - type: string
            - type: 'null'
          title: Entitytype
      type: object
      title: OrganizationEntityUpdate
    OrganizationResponse:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        slug:
          type: string
          title: Slug
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        role:
          anyOf:
            - type: string
            - type: 'null'
          title: Role
        parentOrgId:
          anyOf:
            - type: string
            - type: 'null'
          title: Parentorgid
        ownershipPct:
          anyOf:
            - type: number
            - type: 'null'
          title: Ownershippct
        functionalCurrency:
          anyOf:
            - type: string
            - type: 'null'
          title: Functionalcurrency
        entityType:
          anyOf:
            - type: string
            - type: 'null'
          title: Entitytype
      type: object
      required:
        - id
        - name
        - slug
      title: OrganizationResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /auth/login

````