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

# Disable environment revisions in bulk

> Disable revisions selected by revision ID, built image, or both.
Skips unknown revision IDs and valid image references with no matches.
Requires the `DisabledEnvironmentRevisions` feature flag.




## OpenAPI

````yaml /api-specs/cloud/public-api.json post /api/environments/v1/environments/revisions/disable
openapi: 3.0.3
info:
  title: Domino Public API
  description: Reference for Domino's public REST API endpoints.
  version: 7.0.0
  x-catalog-key: nucleus
servers:
  - url: https://mycluster.domino.tech
    description: >-
      Replace 'mycluster.domino.tech' with your Domino cluster hostname. For
      Domino Cloud customers, that is `your-subdomain`.domino.tech (e.g.,
      acme.domino.tech). For self-hosted deployments, it is the hostname you
      reach the Domino UI at.
security: []
tags:
  - name: Projects
  - name: Project templates
  - name: Workspaces
  - name: Jobs
  - name: HPC Jobs
  - name: Environments
  - name: Hardware Tiers
  - name: Datasets
  - name: Data Sources
  - name: GenAI
  - name: AI Systems
  - name: MLflow experiments and runs
  - name: MLflow models
  - name: MLflow artifacts
  - name: MLflow traces
  - name: Apps
  - name: App versions
  - name: App instances
  - name: Model APIs
  - name: Registered models
  - name: Model deployment
  - name: Extensions
  - name: Cost and billing
  - name: Users and organizations
  - name: Service accounts
  - name: Personal Access Tokens
  - name: Personal Access Tokens (admin)
  - name: Audit Trail
  - name: Custom metrics
  - name: PPM
  - name: Model Monitoring models
  - name: Model Monitoring drift and quality
  - name: Model Monitoring settings
  - name: Model Monitoring authentication
  - name: Governance bundles
  - name: Governance policies
  - name: Governance evidence and results
  - name: Governance operations
  - name: NetApp Volumes
  - name: NetApp Volumes snapshots
  - name: NetApp Volumes filesystems
  - name: NetApp Volumes transfers
  - name: Tags
  - name: Properties
externalDocs:
  description: OpenAPI
  url: https://swagger.io/resources/open-api/
paths:
  /api/environments/v1/environments/revisions/disable:
    post:
      tags:
        - Environments
      summary: Disable environment revisions in bulk
      description: |
        Disable revisions selected by revision ID, built image, or both.
        Skips unknown revision IDs and valid image references with no matches.
        Requires the `DisabledEnvironmentRevisions` feature flag.
      operationId: disableEnvironmentRevisions
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DisableEnvironmentRevisionsRequestV1'
        description: Revisions to disable and active-revision confirmation.
        required: true
      responses:
        '200':
          description: Matching revisions are disabled.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
      security:
        - DominoApiKey: []
        - BearerAuthentication: []
components:
  schemas:
    DisableEnvironmentRevisionsRequestV1:
      additionalProperties: false
      properties:
        details:
          description: 1 to 500 selector objects, including duplicates.
          items:
            $ref: '#/components/schemas/EnvironmentRevisionSelectorV1'
          maxItems: 500
          minItems: 1
          type: array
        forceDisableActive:
          default: false
          description: >-
            Allow disabling active revisions. When false, any active match
            rejects the entire request without changing revisions.
          type: boolean
      required:
        - details
      type: object
    EnvironmentRevisionSelectorV1:
      additionalProperties: false
      minProperties: 1
      properties:
        image:
          description: >
            Matches all revisions with the same built-image repository and tag,
            ignoring the registry

            host and optional URI scheme. An omitted tag defaults to `latest`,
            which also matches

            images stored without a tag.

            Invalid references, digest references, and bare image hashes reject
            the entire request

            with HTTP 400 before any revisions change.
          example: registry.example.com/domino/environment:62313cfd7a0af0281c01a6a6
          type: string
        revisionId:
          description: >-
            Optional, revision ID from the revision page URL or GET
            /api/environments/v1/environments/{environmentId}.
          example: 62313cfd7a0af0281c01a6a6
          pattern: ^[0-9a-fA-F]{24}$
          type: string
      type: object
    ErrorV1:
      properties:
        code:
          description: Machine-readable error code.
          example: NOT_FOUND
          type: string
        message:
          description: Human-readable description of the error.
          example: The requested HPC Job could not be found.
          type: string
      required:
        - message
      type: object
  responses:
    '400':
      content:
        application/json:
          schema:
            properties:
              error:
                type: string
            type: object
      description: Bad Request
    '401':
      content:
        application/json:
          example:
            code: UNAUTHORIZED
            message: Authentication is required to access this resource.
          schema:
            $ref: '#/components/schemas/ErrorV1'
      description: Unauthorized - authentication is required or has failed.
    '403':
      content:
        application/json:
          example:
            code: FORBIDDEN
            message: You do not have permission to perform this action.
          schema:
            $ref: '#/components/schemas/ErrorV1'
      description: Forbidden - the caller lacks permission to perform this action.
    '500':
      content:
        application/json:
          schema:
            properties:
              error:
                type: string
            type: object
      description: Internal Server Error
  securitySchemes:
    DominoApiKey:
      type: apiKey
      in: header
      name: X-Domino-Api-Key
    BearerAuthentication:
      type: apiKey
      name: Authorization
      in: header

````

## Related topics

- [Disable all revisions of an environment](https://docs.domino.ai/api-reference/environments/disable-all-revisions-of-an-environment.md)
- [Enable environment revisions in bulk](https://docs.domino.ai/api-reference/environments/enable-environment-revisions-in-bulk.md)
- [Get disabled environment revisions](https://docs.domino.ai/api-reference/environments/get-disabled-environment-revisions.md)
- [Enable all revisions of an environment](https://docs.domino.ai/api-reference/environments/enable-all-revisions-of-an-environment.md)
