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

# Patch tables



## OpenAPI

````yaml /openapi/settings.json patch /v1/crm/settings/tables/{name}/
openapi: 3.0.3
info:
  title: Yume API — Настройки
  version: 1.0.0
  description: Настройки приложения и пользовательские предпочтения.
servers:
  - url: https://api.yume.cloud
    description: Production
  - url: https://api.stage.yume.cloud
    description: Stage
security: []
paths:
  /v1/crm/settings/tables/{name}/:
    patch:
      tags:
        - tables
      summary: Patch tables
      operationId: tables_partial_update
      parameters:
        - in: path
          name: name
          schema:
            type: string
          required: true
        - $ref: '#/components/parameters/TenantId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedTableSettings'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedTableSettings'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedTableSettings'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TableSettings'
          description: ''
      security:
        - jwtAuth: []
components:
  parameters:
    TenantId:
      name: X-Tenant-Id
      in: header
      required: false
      schema:
        type: integer
      description: >-
        Компания, в контексте которой выполняется запрос — её id из `GET
        /v1/tenant/`. Пользователь должен состоять в этой компании: чужой id
        доступа к данным не даёт. Без заголовка компания определяется по домену
        запроса.
  schemas:
    PatchedTableSettings:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        name:
          type: string
          title: Название
          maxLength: 255
        fields:
          type: array
          items:
            $ref: '#/components/schemas/TableSettingsField'
    TableSettings:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        name:
          type: string
          title: Название
          maxLength: 255
        fields:
          type: array
          items:
            $ref: '#/components/schemas/TableSettingsField'
      required:
        - fields
        - id
        - name
    TableSettingsField:
      type: object
      properties:
        key:
          type: string
        width:
          type: integer
          nullable: true
        active:
          type: boolean
      required:
        - active
        - key
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````