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

# Update counterparty

> Updates a counterparty with the provided fields. Only the fields provided in the request body will be updated.



## OpenAPI

````yaml /openapi-2025-01-15.init.json patch /counterparties/{id}
openapi: 3.0.0
info:
  title: Tomorro API
  description: >
    The Tomorro Public API enables you to programmatically manage contracts,
    members, and counterparties. Build powerful integrations that automate your
    contract management workflows.


    ## API Version: 2025-01-15.init


    This documentation is for API version `2025-01-15.init`.


    > **Warning:** This version is deprecated. This version is deprecated.
    Please upgrade to 2025-01-29.alpha.


    ### Using this version

    ```

    curl -X GET https://api.tomorro.com/members \
      -H "x-api-key: YOUR_API_KEY" \
      -H "tomorro-version: 2025-01-15.init"
    ```
  version: 2025-01-15.init
  contact: {}
servers:
  - url: https://api.tomorro.com/v2
    description: Production
  - url: https://api.demo.tomorro.com/v2
    description: Demo
  - url: http://localhost:3015
    description: Local Development
security: []
tags: []
paths:
  /counterparties/{id}:
    patch:
      tags:
        - Counterparties
      summary: Update counterparty
      description: >-
        Updates a counterparty with the provided fields. Only the fields
        provided in the request body will be updated.
      operationId: CounterpartyController_updateCounterparty
      parameters:
        - name: id
          required: true
          in: path
          description: The unique identifier (UUID) of the counterparty
          schema:
            example: 550e8400-e29b-41d4-a716-446655440000
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CounterpartyUpdateDto20250115Preview'
      responses:
        '200':
          description: Counterparty updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CounterpartyResponseDto'
        '400':
          description: Invalid request body
        '401':
          description: Unauthorized - Invalid or missing API key
        '403':
          description: Forbidden - Insufficient permissions
        '404':
          description: Counterparty not found
        '429':
          description: Too Many Requests - Rate limit exceeded
      security:
        - X-API-KEY: []
components:
  schemas:
    CounterpartyUpdateDto20250115Preview:
      type: object
      properties:
        name:
          type: string
          description: Name of the counterparty (company or individual name)
          example: Acme Corporation
        status:
          type: string
          description: Status of the counterparty
          enum:
            - active
            - archived
          example: active
        logoUrl:
          type: string
          description: URL of the counterparty logo
          nullable: true
          example: https://example.com/logo.png
        attributes:
          description: Custom attributes for the counterparty
          example:
            - attributeDefinitionId: ff093e5d-39af-4cf6-8920-c07c9e3f5921
              value: value1
          type: array
          items:
            $ref: '#/components/schemas/AttributeInputDto20250115Preview'
    CounterpartyResponseDto:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the counterparty
          example: 550e8400-e29b-41d4-a716-446655440000
        name:
          type: string
          description: Name of the counterparty (company or individual name)
          example: Acme Corporation
        status:
          type: string
          description: Current status of the counterparty
          enum:
            - active
            - archived
          example: active
        logoUrl:
          type: string
          description: URL of the counterparty logo
          nullable: true
          example: https://example.com/logo.png
        fields:
          type: object
          description: Custom field values for the counterparty
          example:
            ff093e5d-39af-4cf6-8920-c07c9e3f5921: value1
        createdAt:
          format: date-time
          type: string
          description: >-
            Time at which the counterparty was created. Formatted as an ISO 8601
            date-time string.
          example: '2024-01-01T00:00:00.000Z'
        updatedAt:
          format: date-time
          type: string
          description: >-
            Time at which the counterparty was last updated. Formatted as an ISO
            8601 date-time string.
          example: '2024-01-02T00:00:00.000Z'
      required:
        - id
        - name
        - status
        - logoUrl
        - fields
        - createdAt
        - updatedAt
    AttributeInputDto20250115Preview:
      type: object
      properties:
        attributeDefinitionId:
          type: string
          description: The attribute definition ID
          example: ff093e5d-39af-4cf6-8920-c07c9e3f5921
        value:
          type: object
          description: The attribute value
          example: value1
      required:
        - attributeDefinitionId
        - value
  securitySchemes:
    X-API-KEY:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. Get your key at
        https://app.tomorro.com/settings/integrations?integration=api-key

````