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

# Contract Amendment Update Api

> Updates an existing contract amendment.



## OpenAPI

````yaml patch /api/v1/contract/{contract_uuid}/amendment/{amendment_uuid}
openapi: 3.1.0
info:
  title: NinjaAPI
  version: 1.0.0
  description: ''
servers:
  - url: https://api.justpaid.io
security: []
paths:
  /api/v1/contract/{contract_uuid}/amendment/{amendment_uuid}:
    patch:
      summary: Contract Amendment Update Api
      description: Updates an existing contract amendment.
      operationId: loopfour_backend_contract_external_api_contract_amendment_update_api
      parameters:
        - in: path
          name: contract_uuid
          schema:
            format: uuid
            title: Contract Uuid
            type: string
          required: true
        - in: path
          name: amendment_uuid
          schema:
            format: uuid
            title: Amendment Uuid
            type: string
          required: true
        - name: contract_uuid
          in: path
          description: UUID of the contract
          required: true
          schema:
            type: string
        - name: amendment_uuid
          in: path
          description: UUID of the amendment to update
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContractAmendmentUpdateIn'
        required: true
      responses:
        '200':
          description: Amendment updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractAmendmentOut'
        '404':
          description: Contract or amendment not found
      security:
        - HttpBearerAuth: []
components:
  schemas:
    ContractAmendmentUpdateIn:
      description: Input schema for updating a contract amendment (all fields optional).
      properties:
        effective_date:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          description: Updated effective date for the amendment
          example: '2024-07-01'
          title: Effective Date
      title: ContractAmendmentUpdateIn
      type: object
    ContractAmendmentOut:
      description: Output schema for contract amendment.
      properties:
        original_contract_uuid:
          description: UUID of the original contract
          format: uuid
          title: Original Contract Uuid
          type: string
        uuid:
          format: uuid
          title: Uuid
          type: string
        effective_date:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          title: Effective Date
        effective_end_date:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          title: Effective End Date
        status:
          default: pending
          maxLength: 20
          title: Status
          type: string
        amendment_changes:
          anyOf:
            - type: object
            - type: 'null'
          title: Amendment Changes
        summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Summary
      required:
        - original_contract_uuid
      title: ContractAmendmentOut
      type: object
  securitySchemes:
    HttpBearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.