---
title: "Create Ghost Object"
method: POST
path: "/teaching/ghost-objects"
tags: ["Teaching"]
---

# Create Ghost Object

`POST /teaching/ghost-objects`

Create a ghost object from the prim under the specified path.
This will clone the prim, apply the specified material and shift the origin of the prim.

## Request body

- CreateGhostObject
  - `prim_path` string, required — prim path of the object to clone
  - `ref_pose` WSPose
    - `pose` number[] — Pose in rotation vector format (WS)
  - `tcp_prim_path` string, nullable — Prim path of the TCP which is used as ghost object transform origin

## Response `204`

Successfully added ghost object to the scene

## Other responses

- `404` — Invalid prim path
- `422` — Source ghost object is not created. Make sure that the tool is in robot workspace and the robot is created
- `500` — Internal server error: Unable to add ghost objects to the scene

---

[API](https://skmtc.net/wandelbotsgmbh/apis/wandelbots-nova-isaac-sim-extension-api.md) · [All operations](https://skmtc.net/wandelbotsgmbh/apis/wandelbots-nova-isaac-sim-extension-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wandelbotsgmbh/wandelbots-nova-isaac-sim-extension-api/revisions/a0efd7dad77c/schema)
