---
title: "Swap the CAD on which the mesh is based"
method: POST
path: "/projects/{projectId}/meshoperations/{meshOperationId}/swapcad"
tags: ["Mesh Operations"]
---

# Swap the CAD on which the mesh is based

`POST /projects/{projectId}/meshoperations/{meshOperationId}/swapcad`

Swap the CAD on which the mesh is based. The assignments on CAD entities are mapped accordingly.

## Request body

- SwapCadRequest
  - `sourceCadId` string, uuid, required — The ID of the assigned CAD.
  - `sourceCadStateId` string, uuid, required — The ID of the assigned CAD state.
  - `targetCadId` string, uuid, required — The ID of the CAD to assign.
  - `targetCadStateId` string, uuid, required — The ID of the CAD state to assign.

## Response `200`

Successful operation.

- SwapCadReport — The report provides details on unsuccessful entity mappings found in the assignments. Ideally, this section should be empty, indicating that all entities were mapped correctly. Please review the reported fields to verify and correct any discrepancies.
  - `unmappedPaths` string[] — List of unmapped assignments.
  - `partiallyMappedPaths` string[] — List of partially mapped assignments.

## Other responses

- `404` — Not found.

---

[API](https://skmtc.net/simscale/apis/simscale-api.md) · [All operations](https://skmtc.net/simscale/apis/simscale-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/simscale/simscale-api/revisions/53223abaceb7/schema)
