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

# Cancel a Databricks Metric View publication run

Requests cancellation of an active run and returns its state. Metric Views already written in the run are not rolled back. Requires SchemaUpdate access.


## OpenAPI

````yaml /api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/databricks-metric-view-integrations/{dataSourceName}/syncs/{runId}
openapi: 3.1.0
info:
  title: Cube Platform API
  version: 1.0.0
  description: >-
    Programmatically manage Cube: deployments and everything scoped to them

    (environments, folders, reports, workbooks, notifications, workspace, and
    agents),

    plus account-level users, groups, policies, embedding, and AI settings.
    Data-model

    authoring, dev mode, branches, and uploads live under /build/api/v1 — same
    host and

    token, routed to the build pods.
servers:
  - url: https://{tenant}.cubecloud.dev
    description: Your tenant host. Replace the whole host if you use a custom domain.
    variables:
      tenant:
        default: your-tenant
        description: Your Cube tenant subdomain
security:
  - bearerAuth: []
tags:
  - name: Deployments
  - name: Deployment Creation
  - name: Environments
  - name: Env Variables
  - name: Regions
  - name: Data Model
  - name: Data Model Uploads
  - name: GitHub
  - name: GitHub Connection
  - name: dbt Sync
  - name: Databricks Metric View Publication
  - name: Databricks Metric View Integration
  - name: Folders
  - name: Reports
  - name: External Documents
  - name: Workbooks
  - name: Workbook Promotions
  - name: Dashboard Exports
  - name: Notifications
  - name: Workspace
  - name: Users
  - name: Users Admin
  - name: API Keys
  - name: User Attributes
  - name: User Attribute Values
  - name: Tenant Settings
  - name: OAuth Integrations
  - name: User OAuth Tokens
  - name: OIDC Token Configs
  - name: App Theme
  - name: Embed
  - name: Embed Tenants
  - name: Dashboard Embed Access
  - name: Usage Analytics
  - name: OpenAPI Spec
paths:
  /api/v1/deployments/{deploymentId}/databricks-metric-view-integrations/{dataSourceName}/syncs/{runId}:
    delete:
      tags:
        - Databricks Metric View Integration
      summary: Cancel a Databricks Metric View publication run
      operationId: cancelSync
      parameters:
        - in: path
          name: deploymentId
          required: true
          schema:
            type: integer
        - in: path
          name: dataSourceName
          required: true
          schema:
            type: string
        - in: path
          name: runId
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DatabricksMetricViewSyncRunResponse'
          description: ''
components:
  schemas:
    DatabricksMetricViewSyncRunResponse:
      properties:
        buildJobId:
          oneOf:
            - type: integer
            - type: 'null'
        cancelRequestedAt:
          oneOf:
            - pattern: \d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z?
              type: string
            - type: 'null'
        commit:
          oneOf:
            - type: string
            - type: 'null'
        completedAt:
          oneOf:
            - pattern: \d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z?
              type: string
            - type: 'null'
        configurationVersion:
          oneOf:
            - type: integer
            - type: 'null'
        createdAt:
          pattern: \d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z?
          type: string
        dataSourceName:
          type: string
        deletionPolicy:
          oneOf:
            - type: string
            - type: 'null'
        deploymentId:
          type: integer
        durationMs:
          oneOf:
            - type: integer
            - type: 'null'
        incompleteViewCount:
          description: >-
            How many published views are missing measures the conversion could
            not represent. A run reports COMPLETED with this above zero, because
            every view published — so automation that treats COMPLETED as "fully
            published" should assert this is 0. Read views[].withheldMembers for
            which measures, and why.
          minimum: 0
          type: integer
        integrationPublicId:
          type: string
        progress:
          oneOf:
            - $ref: '#/components/schemas/DatabricksMetricViewSyncProgressResponse'
            - type: 'null'
          description: Live progress while the run is active; null once it is terminal.
        runId:
          type: string
        stage:
          oneOf:
            - type: string
            - type: 'null'
        startedAt:
          oneOf:
            - pattern: \d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z?
              type: string
            - type: 'null'
        status:
          $ref: '#/components/schemas/DatabricksMetricViewSyncRunResponseStatus'
        targetCatalog:
          oneOf:
            - type: string
            - type: 'null'
        targetSchema:
          oneOf:
            - type: string
            - type: 'null'
        trigger:
          $ref: '#/components/schemas/DatabricksMetricViewSyncRunResponseTrigger'
        viewNames:
          description: The Cube views this run was planned against.
          items:
            type: string
          type: array
        views:
          items:
            $ref: '#/components/schemas/DatabricksMetricViewSyncViewOutcomeResponse'
          type: array
      required:
        - runId
        - deploymentId
        - integrationPublicId
        - dataSourceName
        - trigger
        - status
        - viewNames
        - views
        - incompleteViewCount
        - createdAt
      type: object
    DatabricksMetricViewSyncProgressResponse:
      properties:
        published:
          type: integer
        stage:
          type: string
        total:
          type: integer
      required:
        - stage
        - published
        - total
      type: object
    DatabricksMetricViewSyncRunResponseStatus:
      enum:
        - QUEUED
        - RUNNING
        - CANCELLING
        - COMPLETED
        - PARTIAL
        - FAILED
        - CANCELLED
      type: string
    DatabricksMetricViewSyncRunResponseTrigger:
      enum:
        - MANUAL
      type: string
    DatabricksMetricViewSyncViewOutcomeResponse:
      properties:
        cubeViewName:
          type: string
        detail:
          oneOf:
            - type: string
            - type: 'null'
          description: A stable reason code, never raw Databricks output.
        outcome:
          $ref: >-
            #/components/schemas/DatabricksMetricViewSyncViewOutcomeResponseOutcome
        withheldMembers:
          description: >-
            Measures this view published without, as 'cube.member'. Non-empty
            means the Metric View is queryable but incomplete.
          items:
            type: string
          type: array
      required:
        - cubeViewName
        - outcome
        - withheldMembers
      type: object
    DatabricksMetricViewSyncViewOutcomeResponseOutcome:
      enum:
        - unchanged
        - created
        - updated
        - blocked
        - validation_failed
        - publish_failed
        - retained_obsolete
        - deleted_obsolete
      type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Token authentication. Send `Authorization: Bearer <YOUR_TOKEN>`.'

````