> ## 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.

# Bulk reassign bundle stages

> Reassign one or more bundle stages to a single assignee. Each item targets a specific stage ({bundleId, stageId}) or just a bundle ({bundleId}), in which case its current stage is used. Returns a per-item result list. Requires manage permission on every project the bundles belong to.



## OpenAPI

````yaml /api-specs/cloud/governance-api.json post /bundle-stages/bulk-reassign
openapi: 3.0.3
info:
  description: Service responsible for managing Domino Governance feature
  title: Domino Governance API
  contact:
    name: Domino Data Lab
    url: https://tickets.dominodatalab.com/hc/en-us
    email: support@dominodatalab.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: https://mycluster.domino.tech/api/governance/v1
    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: []
paths:
  /bundle-stages/bulk-reassign:
    post:
      tags:
        - bundle-stages
      summary: Bulk reassign bundle stages
      description: >-
        Reassign one or more bundle stages to a single assignee. Each item
        targets a specific stage ({bundleId, stageId}) or just a bundle
        ({bundleId}), in which case its current stage is used. Returns a
        per-item result list. Requires manage permission on every project the
        bundles belong to.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/server.BulkReassignBundleStagesRequest'
        description: Bulk reassign payload
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/server.BulkOperationResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/server.HTTPError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/server.HTTPError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/server.HTTPError'
components:
  schemas:
    server.BulkReassignBundleStagesRequest:
      type: object
      required:
        - assignee
        - items
      properties:
        assignee:
          $ref: '#/components/schemas/guardrails.BundleStageAssignee'
        items:
          type: array
          maxItems: 500
          minItems: 1
          items:
            $ref: '#/components/schemas/guardrails.BundleStageReassignTarget'
    server.BulkOperationResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/server.APIError'
        results:
          type: array
          items:
            $ref: '#/components/schemas/server.OperationResult'
    server.HTTPError:
      type: object
      properties:
        code:
          description: >-
            Code is a stable machine-readable error identifier; absent on most
            errors.
          allOf:
            - $ref: '#/components/schemas/guardrails.ErrorCode'
        message:
          type: string
    guardrails.BundleStageAssignee:
      type: object
      required:
        - id
        - name
      properties:
        id:
          type: string
        name:
          type: string
    guardrails.BundleStageReassignTarget:
      type: object
      required:
        - bundleId
      properties:
        bundleId:
          type: string
        stageId:
          type: string
    server.APIError:
      type: object
      properties:
        action:
          $ref: '#/components/schemas/guardrails.Action'
        code:
          type: string
        details:
          $ref: '#/components/schemas/server.ErrorDetail'
        message:
          type: string
        resource:
          $ref: '#/components/schemas/server.ResourceRequest'
        status:
          type: integer
    server.OperationResult:
      type: object
      properties:
        action:
          $ref: '#/components/schemas/guardrails.Action'
        data: {}
        error:
          $ref: '#/components/schemas/server.APIError'
        resource:
          $ref: '#/components/schemas/server.ResourceRequest'
        status:
          type: integer
    guardrails.ErrorCode:
      type: string
      enum:
        - BUNDLE_REQUIRES_POLICY
      x-enum-varnames:
        - CodeBundleRequiresPolicy
    guardrails.Action:
      type: string
      enum:
        - update
        - deactivate
        - attach enforced policies
      x-enum-varnames:
        - UpdateAction
        - DeactivateAction
        - AttachEnforcedPoliciesAction
    server.ErrorDetail:
      type: object
      properties:
        field:
          type: string
        value:
          type: string
    server.ResourceRequest:
      type: object
      required:
        - ids
        - type
      properties:
        ids:
          $ref: '#/components/schemas/server.ResourceIDsRequest'
        type:
          $ref: '#/components/schemas/guardrails.ResourceType'
    server.ResourceIDsRequest:
      type: object
      properties:
        appID:
          type: string
        bundleID:
          type: string
        policyID:
          type: string
        stageID:
          type: string
    guardrails.ResourceType:
      type: string
      enum:
        - Bundle
        - BundlePolicy
        - BundleStage
      x-enum-varnames:
        - BundleType
        - BundlePolicyType
        - BundleStageType

````

## Related topics

- [Bulk update bundles](/api-reference/bundles/bulk-update-bundles.md)
- [List bundle stages (Stage View)](/api-reference/bundle-stages/list-bundle-stages-stage-view.md)
- [Bulk add attachments to bundles](/api-reference/attachments/bulk-add-attachments-to-bundles.md)
- [Work with bundles](/cloud/platform-capabilities/features/governance/work-with-bundles/index.md)
