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

# Create or replace a provisioning document (POST = replace)

> Creates a document if it does not exist, otherwise replaces the existing document (POST = replace).



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/provisioning/tenants/{tenantId}
openapi: 3.1.0
info:
  title: Crescendo Platform API
  version: 1.6.0
  description: Public HTTP API for the Crescendo platform.
servers:
  - url: https://platform.crescendo.ai
security:
  - bearerAuth: []
  - bearerTokenQuery: []
tags:
  - name: Service
    description: Service metadata and health.
  - name: Provisioning
    description: Tenant-scoped provisioning resources.
  - name: Reporting
    description: Reporting-friendly exports (cursor pagination).
  - name: VOC
    description: Upload recordings for VOC processing.
  - name: MCP
    description: Model Context Protocol (MCP) endpoints.
paths:
  /api/v1/provisioning/tenants/{tenantId}:
    post:
      tags:
        - Provisioning
      summary: Create or replace a provisioning document (POST = replace)
      description: >-
        Creates a document if it does not exist, otherwise replaces the existing
        document (POST = replace).
      operationId: postProvisioningTenant
      parameters:
        - $ref: '#/components/parameters/tenantId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProvisioningDocument'
      responses:
        '200':
          description: Replaced (existing document)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProvisioningDocument'
        '201':
          description: Created (new document)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProvisioningDocument'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/PermissionDenied'
components:
  parameters:
    tenantId:
      name: tenantId
      in: path
      required: true
      description: Tenant identifier.
      schema:
        type: string
  schemas:
    ProvisioningDocument:
      type: object
      description: Arbitrary JSON object representing the provisioning resource.
      additionalProperties: true
    ErrorResponse:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            example:
              value:
                code: BadRequest
                message: Invalid request parameters
    Unauthenticated:
      description: Unauthenticated
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            example:
              value:
                code: Unauthenticated
                message: Authorization header with Bearer token is required
    PermissionDenied:
      description: Permission denied
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            example:
              value:
                code: PermissionDenied
                message: API key does not allow this operation
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
    bearerTokenQuery:
      type: apiKey
      in: query
      name: bearer_token
      description: >-
        Alternative to the Authorization header. Prefer the Authorization header
        whenever possible.

````