> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pathors.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Replace Pathway

> Replace the entire pathway

## Request

```bash theme={null}
PUT https://api.pathors.com/v1/projects/{projectId}/pathway
```

Replaces the entire pathway. For granular updates, use the [Nodes](/en/api-reference/v1/pathway/patch-node) and [Edges](/en/api-reference/v1/pathway/patch-edge) endpoints instead.

### Path Parameters

<ParamField path="projectId" type="string" required>
  The project ID
</ParamField>

### Headers

<ParamField header="Authorization" type="string" required>
  Bearer token using your developer key
</ParamField>

### Body

<ParamField body="nodes" type="array" required>
  Array of pathway nodes. Must contain at least one `start` node.
</ParamField>

<ParamField body="edges" type="array" required>
  Array of edges connecting nodes.
</ParamField>

<ParamField body="version" type="string" required>
  Pathway version string.
</ParamField>

## Response

```json theme={null}
{
  "message": "Pathway saved"
}
```
