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

# Copy all tags from one entity to another

> Copy all tag assignments from a source entity ID to a target entity ID of the same type, replacing the target's existing tags. The source is retained. Both entities must exist. Internal, service-account only.



## OpenAPI

````yaml /api-specs/cloud/taxonomy-api.json post /rpc/copy-entity-tags
openapi: 3.0.3
info:
  description: >-
    Microservice responsible for managing the Domino Taxonomy and Properties
    features
  title: Domino Taxonomy Microservice API
  termsOfService: http://swagger.io/terms/
  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/taxonomy/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: []
tags:
  - description: Manage taxonomy namespaces.
    name: Tagging - Namespaces
  - description: Manage tags within namespaces.
    name: Tagging - Tags
  - description: Assign, remove, and list tag assignments on entities.
    name: Tagging - Entity Tags
  - description: Look up entities by tag.
    name: Tagging - Entities
  - description: Fetch the full namespace + tag hierarchy.
    name: Tagging - Taxonomy Tree
  - description: Validate and import taxonomy data from a file.
    name: Tagging - Import
  - description: Export the current taxonomy to a file.
    name: Tagging - Export
  - description: Internal-only endpoints for service-account callers.
    name: Tagging - Internal
  - description: Manage property definitions and their groups.
    name: Properties - Definitions
  - description: Read and update an entity's property values.
    name: Properties - Values
  - description: Internal-only endpoints for service-account callers (properties).
    name: Properties - Internal
externalDocs:
  description: OpenAPI
  url: https://swagger.io/resources/open-api/
paths:
  /rpc/copy-entity-tags:
    post:
      tags:
        - Tagging - Internal
      summary: Copy all tags from one entity to another
      description: >-
        Copy all tag assignments from a source entity ID to a target entity ID
        of the same type, replacing the target's existing tags. The source is
        retained. Both entities must exist. Internal, service-account only.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/server.CopyEntityTagsRequest'
        description: Copy entity tags request
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/taxonomy.CopyEntityTagsResult'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/server.HTTPError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/server.HTTPError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/server.HTTPError'
        '404':
          description: Not Found
          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.CopyEntityTagsRequest:
      type: object
      required:
        - entityType
        - sourceEntityId
        - targetEntityId
      properties:
        entityType:
          $ref: '#/components/schemas/taxonomy.EntityType'
        sourceEntityId:
          type: string
        targetEntityId:
          type: string
    taxonomy.CopyEntityTagsResult:
      type: object
      properties:
        copiedCount:
          type: integer
        entityType:
          $ref: '#/components/schemas/taxonomy.EntityType'
        sourceEntityId:
          type: string
        targetEntityId:
          type: string
    server.HTTPError:
      type: object
      properties:
        message:
          type: string
    taxonomy.EntityType:
      type: string
      enum:
        - dataset
        - project
        - project_template
        - model
        - model_version
        - app
        - app_version
        - netapp_volume
        - environment
        - policy
        - policy_version
      x-enum-varnames:
        - EntityTypeDataset
        - EntityTypeProject
        - EntityTypeProjectTemplate
        - EntityTypeModel
        - EntityTypeModelVersion
        - EntityTypeApp
        - EntityTypeAppVersion
        - EntityTypeNetappVolume
        - EntityTypeEnvironment
        - EntityTypePolicy
        - EntityTypePolicyVersion

````

## Related topics

- [Copy all property values from one entity to another](/api-reference/properties--internal/copy-all-property-values-from-one-entity-to-another.md)
- [Copy the transferable results from one bundle to another](/api-reference/rpc/copy-the-transferable-results-from-one-bundle-to-another.md)
- [Tags](/cloud/platform-capabilities/core-concepts/knowledge-management/tags.md)
- [Tag an entity](/api-reference/tagging--entity-tags/tag-an-entity.md)
