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

# Update an existing company.

> Matched by company number within the tenant. Returns 404 if the company number is not
found. Only supplied fields are applied.



## OpenAPI

````yaml /api-reference/openapi.json put /openapi/v1/Company/{companyNo}
openapi: 3.0.1
info:
  title: OmniServices Web API
  version: v1
servers:
  - url: https://api.oplog.one
    description: Production Server
  - url: https://api.staging.oplog.one
    description: Staging Server
security:
  - Authorization: []
paths:
  /openapi/v1/Company/{companyNo}:
    put:
      tags:
        - Company
      summary: Update an existing company.
      description: "Matched by company number within the tenant. Returns 404 if the company number is not\r\nfound. Only supplied fields are applied."
      parameters:
        - name: companyNo
          in: path
          required: true
          schema:
            type: string
        - name: X-Tenant-Id
          in: header
          description: If you want to emulate, please enter TenantId.
          schema:
            type: string
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/UpdateCompanyRequestDTO'
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCompanyRequestDTO'
          text/json:
            schema:
              $ref: '#/components/schemas/UpdateCompanyRequestDTO'
          application/*+json:
            schema:
              $ref: '#/components/schemas/UpdateCompanyRequestDTO'
      responses:
        '200':
          description: Success
components:
  schemas:
    UpdateCompanyRequestDTO:
      type: object
      properties:
        companyName:
          type: string
        email:
          type: string
        phone:
          type: string
      additionalProperties: false
      description: "Update contract for an existing company (matched by the companyNo in the route). Only supplied\r\nfields are applied; omitted fields keep their current value."
  securitySchemes:
    Authorization:
      type: apiKey
      in: header
      name: Authorization

````