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

# Create, enable, or disable a regulatory policy

> Idempotent upsert of one policy subscription for the caller workspace. Disable by sending enabled=false. Email and cnpj are required when creating; omit them on later calls to keep the stored values.



## OpenAPI

````yaml /api-reference/platform-api.json put /v2/policies
openapi: 3.0.0
info:
  title: Range Platform API
  description: >-
    The Range Platform API for workspace management, counterparties, and
    operational tooling.
  version: 1.7.21
  contact: {}
servers:
  - url: https://api.range.org
    description: Range API Server
security:
  - Authorization: []
  - Authorization: []
tags:
  - name: Address Information
    description: Get information about a crypto address.
  - name: Transfer Enrichments
    description: Attach workspace-scoped notes and categories to transfers.
  - name: Counterparties
    description: Manage external entities, their addresses, bank accounts, and documents.
paths:
  /v2/policies:
    put:
      tags:
        - Policies
      summary: Create, enable, or disable a regulatory policy
      description: >-
        Idempotent upsert of one policy subscription for the caller workspace.
        Disable by sending enabled=false. Email and cnpj are required when
        creating; omit them on later calls to keep the stored values.
      operationId: upsertPolicy
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpsertPolicyDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyDto'
components:
  schemas:
    UpsertPolicyDto:
      type: object
      properties:
        policy:
          type: string
          example: cadoc-5711
          enum:
            - cadoc-5710
            - cadoc-5711
        email:
          type: string
          format: email
          example: compliance@example.com
          description: >-
            Recipient of the policy report emails. Required when creating the
            subscription; omit on update to keep the stored recipient.
        enabled:
          type: boolean
          example: true
          description: Set false to pause the policy without deleting it.
        cnpj:
          type: string
          example: '99999999'
          description: >-
            CNPJ base of the reporting institution (8 alphanumeric characters).
            Fills the CADOC XML <documento> cnpj header. Required when creating
            a subscription; omit on a later update to keep the stored value.
      required:
        - policy
        - enabled
    PolicyDto:
      type: object
      properties:
        policy:
          type: string
          example: cadoc-5711
          enum:
            - cadoc-5710
            - cadoc-5711
        pretty_name:
          type: string
          example: CADOC 5711 - Daily custody filing
        email:
          type: string
          example: compliance@example.com
        enabled:
          type: boolean
          example: true
        cnpj:
          type: string
          nullable: true
          example: '99999999'
        created_at:
          type: string
          example: '2026-08-25T00:00:00.000Z'
        updated_at:
          type: string
          example: '2026-08-25T00:00:00.000Z'
      required:
        - policy
        - pretty_name
        - email
        - enabled
        - created_at
        - updated_at
  securitySchemes:
    Authorization:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Authorization method required to allow user to access the api endpoints.

````