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

# Change deal

> Change the owner, amount, company, people or expected close date of one or more deals.

This tool changes data. Call it without `confirmationToken` for a preview that changes nothing. Then send the same body with the preview's `confirmationToken` to apply it.



## OpenAPI

````yaml /openapi.json post /v1/tools/update_deal
openapi: 3.1.0
info:
  title: Steerco API
  version: 2.0.0
  description: >-
    Read and change your Steerco workspace: companies, people, mail, meetings,
    deals, sequences, tasks, lead finders and website visitors. The REST API and
    the MCP server run the same tools.
servers:
  - url: https://api.getsteerco.com
security: []
paths:
  /v1/tools/update_deal:
    post:
      tags:
        - Tools
      summary: Change deal
      description: >-
        Change the owner, amount, company, people or expected close date of one
        or more deals.


        This tool changes data. Call it without `confirmationToken` for a
        preview that changes nothing. Then send the same body with the preview's
        `confirmationToken` to apply it.
      operationId: update_deal
      parameters:
        - schema:
            type: string
            description: The workspace id. GET /v1/workspaces lists yours.
          required: true
          description: The workspace id. GET /v1/workspaces lists yours.
          in: header
          name: X-Workspace-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                changes:
                  description: >-
                    One entry per deal, 100 at most. Put every deal the person
                    asked about in this one call.
                  minItems: 1
                  maxItems: 100
                  type: array
                  items:
                    type: object
                    properties:
                      dealId:
                        type: string
                        pattern: ^[0-9a-fA-F]{24}$
                        description: The deal's id, from list_deals.
                      owner:
                        description: >-
                          The teammate who owns the deal, by userId. null leaves
                          it with no owner.
                        anyOf:
                          - type: string
                            pattern: ^[0-9a-fA-F]{24}$
                          - type: 'null'
                      amount:
                        description: The deal's amount. null clears it.
                        anyOf:
                          - type: number
                            minimum: 0
                          - type: 'null'
                      currency:
                        description: The deal's currency, as a 3-letter code such as USD.
                        type: string
                        pattern: ^[A-Z]{3}$
                      recurringMonthly:
                        description: >-
                          The recurring revenue per month, in the deal's
                          currency. null clears it.
                        anyOf:
                          - type: number
                            minimum: 0
                          - type: 'null'
                      companyId:
                        description: The company the deal is with.
                        type: string
                        pattern: ^[0-9a-fA-F]{24}$
                      addPeople:
                        description: People to add to the deal, by id.
                        minItems: 1
                        type: array
                        items:
                          type: string
                          pattern: ^[0-9a-fA-F]{24}$
                      removePeople:
                        description: People to take off the deal, by id.
                        minItems: 1
                        type: array
                        items:
                          type: string
                          pattern: ^[0-9a-fA-F]{24}$
                      expectedCloseOn:
                        description: >-
                          The day the deal is expected to close, YYYY-MM-DD.
                          null clears it.
                        anyOf:
                          - type: string
                            format: date
                            pattern: >-
                              ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
                          - type: 'null'
                      confirmDraftLoss:
                        description: >-
                          Set true only when the preview said this deal's new
                          owner loses a teammate's edits to a waiting follow-up,
                          and the person agreed.
                        type: boolean
                        const: true
                    required:
                      - dealId
                dealId:
                  description: >-
                    Deprecated: the older one-deal shape, with that deal's
                    fields beside it. Pass changes instead.
                  type: string
                  pattern: ^[0-9a-fA-F]{24}$
                owner:
                  description: >-
                    The teammate who owns the deal, by userId. null leaves it
                    with no owner.
                  anyOf:
                    - type: string
                      pattern: ^[0-9a-fA-F]{24}$
                    - type: 'null'
                amount:
                  description: The deal's amount. null clears it.
                  anyOf:
                    - type: number
                      minimum: 0
                    - type: 'null'
                currency:
                  description: The deal's currency, as a 3-letter code such as USD.
                  type: string
                  pattern: ^[A-Z]{3}$
                recurringMonthly:
                  description: >-
                    The recurring revenue per month, in the deal's currency.
                    null clears it.
                  anyOf:
                    - type: number
                      minimum: 0
                    - type: 'null'
                companyId:
                  description: The company the deal is with.
                  type: string
                  pattern: ^[0-9a-fA-F]{24}$
                addPeople:
                  description: People to add to the deal, by id.
                  minItems: 1
                  type: array
                  items:
                    type: string
                    pattern: ^[0-9a-fA-F]{24}$
                removePeople:
                  description: People to take off the deal, by id.
                  minItems: 1
                  type: array
                  items:
                    type: string
                    pattern: ^[0-9a-fA-F]{24}$
                expectedCloseOn:
                  description: >-
                    The day the deal is expected to close, YYYY-MM-DD. null
                    clears it.
                  anyOf:
                    - type: string
                      format: date
                      pattern: >-
                        ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
                    - type: 'null'
                confirmDraftLoss:
                  description: >-
                    Set true only when the preview said this deal's new owner
                    loses a teammate's edits to a waiting follow-up, and the
                    person agreed.
                  type: boolean
                  const: true
                confirmationToken:
                  description: >-
                    The confirmationToken from this tool's preview. Leave it out
                    to get a preview; nothing changes until you send it.
                  type: string
                  minLength: 1
                  maxLength: 256
      responses:
        '200':
          description: >-
            A preview, when the body has no confirmationToken. The applied
            write, when it has one.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ToolPreview'
                  - $ref: '#/components/schemas/ToolCommitted'
        '400':
          description: The body doesn't match the tool's input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: The API key is missing or not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Your role or plan doesn't allow this tool, or your setting for
            changes from AI tools and API keys is off.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: A record the input names doesn't exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The confirmationToken doesn't match this body, or it expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: You made more than 120 tool calls in a minute.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    ToolPreview:
      type: object
      properties:
        status:
          type: string
          enum:
            - preview
        preview:
          description: What the write would change. Nothing has changed yet.
        confirmationToken:
          type: string
          description: >-
            Send this back with the same input to apply the write. It works for
            this call only.
        expiresAt:
          type: string
          description: When the token stops working, 10 minutes after the preview.
      required:
        - status
        - confirmationToken
        - expiresAt
    ToolCommitted:
      type: object
      properties:
        status:
          type: string
          enum:
            - committed
        result: {}
        cut:
          $ref: '#/components/schemas/OutputCut'
      required:
        - status
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
      required:
        - error
        - code
    OutputCut:
      type: object
      properties:
        note:
          type: string
          description: What was cut, and how to get the rest.
        lists:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              shown:
                type: integer
              total:
                type: integer
            required:
              - path
              - shown
              - total
          description: Each list that lost items from its end, by its path in the result.
        textsShortened:
          type: integer
          description: How many long text fields end in "[cut]".
      required:
        - note
        - lists
        - textsShortened
      description: >-
        Present when the result was larger than about 25,000 tokens and Steerco
        cut it.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An API key, starting ak_. Create one under Settings > MCP and API in
        Steerco.

````

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