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

# Update Company Details Endpoint

> Update Company Details endpoint allows you to update information about a specific company within the supply chain by making a PATCH request. Provide the hash ID of the company in the endpoint URL and include the fields to be updated in the request body.



## OpenAPI

````yaml patch /supply-chains/companies/{hashid}/
openapi: 3.0.1
info:
  title: Trace Connect API
  version: v1
servers:
  - url: http://localhost:3000/connect/v1
security:
  - Bearer: []
paths:
  /supply-chains/companies/{hashid}/:
    patch:
      tags:
        - supply-chains
      description: A viewset for viewing and editing Company instances.
      operationId: supply-chains_companies_partial_update
      parameters:
        - name: hashid
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompanyCreate'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyCreate'
components:
  schemas:
    CompanyCreate:
      required:
        - name
      type: object
      properties:
        id:
          type: string
        currency:
          title: Currency
          minLength: 1
          type: string
        updated_on:
          title: Updated On
          type: string
          format: date-time
          readOnly: true
        created_on:
          title: Created On
          type: string
          format: date-time
        image:
          title: Photo
          type: string
          format: uri
          nullable: true
          readOnly: true
        description:
          title: Description
          maxLength: 500
          type: string
          nullable: true
        house_name:
          title: House name
          maxLength: 100
          type: string
          nullable: true
        street:
          title: Street
          maxLength: 500
          type: string
          nullable: true
        city:
          title: City
          maxLength: 500
          type: string
          nullable: true
        sub_province:
          title: Sub province
          maxLength: 500
          type: string
          nullable: true
        province:
          title: Province
          maxLength: 500
          type: string
          nullable: true
        latitude:
          title: Latitude
          type: number
        longitude:
          title: Longitude
          type: number
        zipcode:
          title: Zipcode
          maxLength: 50
          type: string
          nullable: true
        country:
          title: Country
          maxLength: 500
          type: string
          nullable: true
        email:
          title: Email Address
          maxLength: 100
          type: string
          format: email
          nullable: true
        phone:
          title: Phone Number
          maxLength: 50
          type: string
          nullable: true
        name:
          title: Company Name
          maxLength: 500
          minLength: 1
          type: string
        buy_enabled:
          title: Buy Enabled
          type: boolean
        sell_enabled:
          title: Sell Enabled
          type: boolean
        quality_correction:
          title: Quality Correction
          type: boolean
        allow_multiple_login:
          title: Allow Multiple Login
          type: boolean
        creator:
          type: string
        updater:
          type: string
        buyer:
          type: string
        entity_card:
          type: string
        members:
          uniqueItems: true
          type: array
          readOnly: true
          items:
            type: string
        products:
          uniqueItems: true
          type: array
          readOnly: true
          items:
            type: string
  securitySchemes:
    Bearer:
      type: apiKey
      name: Authorization
      in: header

````