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

# Deprecated — Update a contract

> Deprecated: contracts are being removed; there is no replacement.

Updates a contract's description, dates or parties.


## OpenAPI

````yaml /api-reference/platform.openapi.json put /realms/{realmId}/organizations/{organizationId}/contracts/{contractId}
openapi: 3.0.3
info:
  title: Platform
  version: 1.0.0
  description: >-
    Portão 3 platform API. Every endpoint requires a bearer token in the
    Authorization header (Authorization: Bearer <token>) unless its page states
    otherwise; see the Authentication guide. That requirement is not repeated
    per endpoint. Generated by tools/openapi from code (routes + security) and
    the hand-written spec (request/response bodies). Confidence tiers:
    generated:typed=68 copied:manual=6 unknown=53.
servers:
  - url: https://api.platform.v2.portao3.com.br/
    description: production
  - url: https://api.platform.dev.3pers.com.br/
    description: development
security: []
tags:
  - name: Wallets
  - name: Cards
  - name: PIX
  - name: PIX Keys (DICT)
  - name: Boleto
  - name: Transfers
  - name: Scheduled Payments
  - name: Transactions & Statements
  - name: Invoices
  - name: Contracts & Deals
  - name: Billing
  - name: Notifications
  - name: Users
  - name: Vehicles
paths:
  /realms/{realmId}/organizations/{organizationId}/contracts/{contractId}:
    put:
      tags:
        - Contracts & Deals
      summary: Deprecated — Update a contract
      description: 'Deprecated: contracts are being removed; there is no replacement.'
      operationId: putRealmsByRealmIdOrganizationsByOrganizationIdContractsByContractId
      parameters:
        - name: realmId
          in: path
          required: true
          schema:
            type: string
        - name: organizationId
          in: path
          required: true
          schema:
            type: string
        - name: contractId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                parties:
                  type: array
                  items:
                    type: object
                    default: {}
                    properties:
                      type:
                        type: string
                        enum:
                          - VENDOR
                          - BUYER
                          - INTERMEDIARY
                          - WITNESSES
                      id:
                        type: string
                      entityType:
                        type: string
                        enum:
                          - CUSTOMER
                          - ORGANIZATION
                    required:
                      - type
                      - id
                      - entityType
                  minItems: 1
                description:
                  type: string
                  nullable: true
                startAt:
                  type: string
                endAt:
                  type: string
              required:
                - parties
                - startAt
                - endAt
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  description:
                    type: string
                  realm:
                    type: string
                  organization:
                    type: string
                  startAt:
                    type: string
                    format: date-time
                  endAt:
                    type: string
                    format: date-time
                  status:
                    type: string
                    enum:
                      - OPEN
                      - TERMINATED
                  parties:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - VENDOR
                            - BUYER
                            - INTERMEDIARY
                            - WITNESSES
                        name:
                          type: string
                        document:
                          type: string
                        email:
                          type: string
                        phone:
                          type: string
                        address:
                          type: object
                          properties:
                            street:
                              type: string
                            number:
                              type: string
                            complement:
                              type: string
                            neighborhood:
                              type: string
                            city:
                              type: string
                            state:
                              type: string
                            postalCode:
                              type: string
                          required:
                            - street
                            - number
                            - neighborhood
                            - city
                            - state
                            - postalCode
                        account:
                          type: object
                          properties:
                            identifier:
                              type: object
                              properties:
                                realm:
                                  type: string
                                organization:
                                  type: string
                              required:
                                - realm
                                - organization
                      required:
                        - type
                        - name
                        - document
                        - email
                        - phone
                        - address
                  createdBy:
                    type: string
                  updatedBy:
                    type: string
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                required:
                  - id
                  - realm
                  - organization
                  - startAt
                  - status
                  - parties
                  - createdBy
                  - updatedBy
                  - createdAt
                  - updatedAt

````

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