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

# Update organization legal/fiscal data (owner only)

> ⚠️ SECURITY: Only the organization OWNER can update legal and fiscal information. This includes tax system, legal name, address, and contact details.



## OpenAPI

````yaml https://api.timbrix.mx/api/openapi.json put /organizations/{id}/legal
openapi: 3.0.0
info:
  title: Timbrix API
  description: >-
    API de facturación electrónica CFDI 4.0 para México, con servidor OAuth2
    para gestionar organizaciones, miembros y webhooks. Compatible con agentes
    de IA — ver la extensión `x-ai-agent-friendly` en la raíz de esta spec.


    REST API with OAuth2 server for managing organizations, members, and
    webhooks.
  version: '1.0'
  contact: {}
servers: []
security: []
tags:
  - name: organizations
    description: Organization management endpoints
  - name: oauth
    description: OAuth2 authentication and authorization
  - name: webhooks
    description: Webhook configuration and delivery
  - name: users
    description: User information endpoints
  - name: api-keys
    description: API Keys management and validation
paths:
  /organizations/{id}/legal:
    put:
      tags:
        - organizations
      summary: Update organization legal/fiscal data (owner only)
      description: >-
        ⚠️ SECURITY: Only the organization OWNER can update legal and fiscal
        information. This includes tax system, legal name, address, and contact
        details.
      operationId: OrganizationsController_updateLegalData
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateLegalDataDto'
      responses:
        '200':
          description: Organization legal data updated successfully by the owner.
        '400':
          description: Invalid input data. Check the validation errors in the response.
        '401':
          description: Authentication required. Provide a valid bearer token.
        '403':
          description: Access denied. Only the organization owner can update legal data.
        '404':
          description: Organization not found with the provided ID.
      security:
        - bearer: []
components:
  schemas:
    UpdateLegalDataDto:
      type: object
      properties:
        name:
          type: string
          description: Organization display name
          example: Mi Empresa
          minLength: 1
          maxLength: 100
        legal_name:
          type: string
          description: Legal name (Razón Social)
          example: Mi Empresa S.A. de C.V.
          minLength: 1
          maxLength: 250
        tax_system:
          type: string
          description: Tax system code (Régimen Fiscal)
          example: '601'
        website:
          type: string
          description: Organization website URL
          example: https://miempresa.com
        support_email:
          type: string
          description: Support email address
          example: soporte@miempresa.com
        phone:
          type: string
          description: Phone number
          example: +52 644 123 4567
          minLength: 10
          maxLength: 20
        address:
          description: Organization address
          allOf:
            - $ref: '#/components/schemas/AddressDto'
    AddressDto:
      type: object
      properties:
        street:
          type: string
          example: Blvd. Atardecer
        exterior:
          type: string
          example: '142'
        interior:
          type: string
          example: '4'
        neighborhood:
          type: string
          example: Centro
        city:
          type: string
          example: Huatabampo
        municipality:
          type: string
          example: Huatabampo
        zip:
          type: string
          example: '86500'
        state:
          type: string
          example: Sonora
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````