---
title: "Updating Edge item"
method: PUT
path: "/api/simulations/{simulationId}/edges/{edgeId}"
tags: ["Edge"]
---

# Updating Edge item

`PUT /api/simulations/{simulationId}/edges/{edgeId}`

## Request

- Base URL: `https://api.wearelearning.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wearelearning.io/api/simulations/{simulationId}/edges/{edgeId}`
- Auth: OAuth 2
  - Implicit: `https://login.wearelearning.io/authorize?audience=https://api.wearelearning.io`

Updates an existing item

## Path parameters

- `simulationId` string, uuid, required: A valid GUID
- `edgeId` string, required

## Request body

- EditEdgeDto
  - `source` string, required
  - `target` string, required
  - `sourceHandle` 'default' | 'pass' | 'fail'
  - `transition` EdgeTransitionDto
    - `type` 'smooth' | 'instant', required
    - `duration` integer, required

## Response `200`

OK

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/wearelearning/apis/we-are-learning-api.md) - [All operations](https://skmtc.dev/wearelearning/apis/we-are-learning-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wearelearning/apis/we-are-learning-api/revisions/e2ca5265db77?raw)
