> ## 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 accounts



## OpenAPI

````yaml /openapi/integrations.json patch /v1/crm/integrations/wialon/accounts/{id}/
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/integrations/wialon/accounts/{id}/:
    patch:
      tags:
        - wialon
      summary: Patch accounts
      operationId: wialon_accounts_partial_update
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
        - $ref: '#/components/parameters/TenantId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedWialonAccount'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedWialonAccount'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedWialonAccount'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WialonAccount'
          description: ''
      security:
        - jwtAuth: []
components:
  parameters:
    TenantId:
      name: X-Tenant-Id
      in: header
      required: false
      schema:
        type: integer
      description: >-
        Компания, в контексте которой выполняется запрос — её id из `GET
        /v1/tenant/`. Пользователь должен состоять в этой компании: чужой id
        доступа к данным не даёт. Без заголовка компания определяется по домену
        запроса.
  schemas:
    PatchedWialonAccount:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        name:
          type: string
          title: Название
          maxLength: 255
        created_at:
          type: string
          format: date-time
          readOnly: true
          title: Создан
        updated_at:
          type: string
          format: date-time
          readOnly: true
          title: Обновлен
        host:
          type: string
          format: uri
          nullable: true
          title: Сервер
          maxLength: 200
        token:
          type: string
          title: Токен
          maxLength: 255
        extra:
          title: Доп. данные
    WialonAccount:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        name:
          type: string
          title: Название
          maxLength: 255
        created_at:
          type: string
          format: date-time
          readOnly: true
          title: Создан
        updated_at:
          type: string
          format: date-time
          readOnly: true
          title: Обновлен
        host:
          type: string
          format: uri
          nullable: true
          title: Сервер
          maxLength: 200
        token:
          type: string
          title: Токен
          maxLength: 255
        extra:
          title: Доп. данные
      required:
        - created_at
        - id
        - name
        - token
        - updated_at
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````