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

# Patch proposal draft fields or proposal census cells

> Applies an allowlisted CAS patch. Deal stages are never mutated by this endpoint.



## OpenAPI

````yaml /api-reference/cx/swagger.json patch /deals/proposals/{proposal}
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /deals/proposals/{proposal}:
    patch:
      tags:
        - deals
        - proposals
      summary: Patch proposal draft fields or proposal census cells
      description: >-
        Applies an allowlisted CAS patch. Deal stages are never mutated by this
        endpoint.
      parameters:
        - description: Proposal ID
          name: proposal
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/stax_ai_cx_cx-api_pkg_proposals.PatchRequest
        description: Expected revision and patch
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    stax_ai_cx_cx-api_pkg_proposals.PatchRequest:
      type: object
      properties:
        acceptance_workflow:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_proposals.AcceptanceWorkflowConfig
        assignee:
          type: string
        census:
          $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_proposals.CensusCommand'
        completed:
          type: boolean
        data:
          type: array
          items:
            type: integer
        expected_revision:
          type: integer
        illustration_year:
          type: integer
        layout:
          type: string
        name:
          type: string
        plan_effective_date:
          type: string
        plan_type:
          type: string
        public_contact:
          type: string
        section:
          type: string
        status:
          type: string
    stax_ai_cx_cx-api_pkg_proposals.AcceptanceWorkflowConfig:
      type: object
      properties:
        deal_action:
          type: string
        deal_stage:
          type: string
        deal_stage_name:
          type: string
        effective_date:
          type: string
        form_template:
          type: string
        kind:
          type: string
        mark_deal_won:
          type: boolean
        plan_name:
          type: string
        plan_type:
          type: string
        project_template:
          type: string
    stax_ai_cx_cx-api_pkg_proposals.CensusCommand:
      type: object
      properties:
        action:
          type: string
        client_id:
          type: string
        employee:
          type: array
          items:
            type: integer
        employees:
          type: array
          items:
            type: object
            additionalProperties: {}
        example:
          type: boolean
        field:
          type: string
        name:
          type: string
        plan_compensation:
          type: object
          additionalProperties:
            type: number
            format: float64
        test_compensation:
          type: object
          additionalProperties:
            type: number
            format: float64
        value: {}
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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