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

# Publish a new policy version

> Open disputes keep the version they started under.



## OpenAPI

````yaml /api-reference/openapi.json put /v1/policy
openapi: 3.1.0
info:
  title: Rubicourt API
  version: 1.0.0
  description: >-
    Two services. Resolve (/v1/policy, /v1/disputes): your platform's own
    dispute decisions, made by AI under your written policy, with your staff
    reviewing the cases the policy routes to them; binding only inside your
    platform. Arbitration (/v1/cases): binding small-claims arbitration, where a
    licensed attorney arbitrator decides every case and signs every award, with
    one appeal to a different arbitrator. A Resolve dispute can escalate to
    arbitration when your policy enables it. Authenticate with your platform API
    key as a bearer token. Rubicourt is a private arbitration provider, not a
    government court.
  contact:
    email: hello@rubicourt.com
servers:
  - url: https://api.rubicourt.com
security:
  - apiKey: []
tags:
  - name: Resolve
    description: >-
      Your platform's own dispute decisions, made by AI under your written
      policy.
  - name: Arbitration
    description: >-
      Binding small-claims arbitration decided by a licensed attorney
      arbitrator.
  - name: Webhooks
    description: Signed events Rubicourt sends to your webhook URL.
paths:
  /v1/policy:
    put:
      tags:
        - Resolve
      summary: Publish a new policy version
      description: Open disputes keep the version they started under.
      operationId: publishPolicy
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - text
              properties:
                text:
                  type: string
                  minLength: 50
                  description: Your dispute rules in plain language.
                auto_decide_max_cents:
                  type: integer
                  default: 25000
                  description: >-
                    AI decisions are final up to this amount; above it your
                    reviewer approves.
                evidence_window_hours:
                  type: integer
                  default: 72
                review_window_days:
                  type: integer
                  default: 14
                arbitration_enabled:
                  type: boolean
                  default: false
                  description: >-
                    True when your terms let users escalate to Rubicourt
                    arbitration.
      responses:
        '201':
          description: Published.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Policy'
        '400':
          description: The request is malformed or a field is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such case for this platform.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Policy:
      type: object
      properties:
        id:
          type: string
        version:
          type: integer
        text:
          type: string
        auto_decide_max_cents:
          type: integer
        evidence_window_hours:
          type: integer
        review_window_days:
          type: integer
        arbitration_enabled:
          type: boolean
        created_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Your platform API key.

````

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