---
title: "Swap the CAD on which the simulation is based"
method: POST
path: "/projects/{projectId}/simulations/{simulationId}/swapcad"
tags: ["Simulations"]
---

# Swap the CAD on which the simulation is based

`POST /projects/{projectId}/simulations/{simulationId}/swapcad`

Swap the CAD on which the simulation is based. The assignments on CAD entities are mapped accordingly.
This operation supports only swap between two CADs.

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