---
title: "Update Trajectory"
method: PATCH
path: "/trajectories/{name}"
tags: ["Trajectory"]
---

# Update Trajectory

`PATCH /trajectories/{name}`

Updates an existing trajectory with new motion data.

## Path parameters

- `name` string, required — Name of the trajectory to update

## Request body

- PatchTrajectoryData
  - `poses` array[], nullable — List of cartesian poses to traverse
    - number[]
  - `options` TrajectoryOptions
    - `color` array[] — Color of the trajectory. Either a single RGB tuple for uniform color, or a list of RGB tuples for per-segment colors
      - unknown[]
        - unknown
    - `width` union — Width of the trajectory in mm. Either a single value for uniform width, or a list of values for per-segment widths
      - number
      - number[]

## Response `200`

Successful Response

- TrajectoryObject
  - `name` string, required — Name of the trajectory
  - `path` string, required — Prim path of the trajectory
  - `poses` array[], required — List of cartesian poses to traverse
    - number[]
  - `options` TrajectoryOptions, required
    - `color` array[] — Color of the trajectory. Either a single RGB tuple for uniform color, or a list of RGB tuples for per-segment colors
      - unknown[]
        - unknown
    - `width` union — Width of the trajectory in mm. Either a single value for uniform width, or a list of values for per-segment widths
      - number
      - number[]

## Other responses

- `404` — Trajectory not found
- `422` — Validation Error
- `500` — Unable to update trajectory

---

[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/versions/a0efd7dad77c/schema)
