---
title: "Replaces the job's referral hierarchy with the provided nodes/edges payload."
method: PUT
path: "/api/v1/jobs/{jobId}/referrals/save"
tags: ["JobReferral"]
---

# Replaces the job's referral hierarchy with the provided nodes/edges payload.

`PUT /api/v1/jobs/{jobId}/referrals/save`

## Request

- Base URL: `https://api.fireserviceusa.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fireserviceusa.com/api/v1/jobs/{jobId}/referrals/save`
- Auth: none declared

## Path parameters

- `jobId` integer, required

## Request body

- SaveJobHierarchyRequest: DTO for saving a hierarchy
  - `Nodes` SaveJobHierarchyNode[], nullable
    - `Id` string, nullable
    - `Label` string, nullable
    - `IsRoot` boolean
    - `IsInitialAccount` boolean
  - `Edges` SaveJobHierarchyEdge[], nullable
    - `From` string, nullable
    - `To` string, nullable
  - `Initial` string, nullable
  - `Version` string, nullable
  - `Overwrite` boolean

## Response `200`

Success

---

[API](https://skmtc.dev/fireserviceusa/apis/fireservice-usa-p2-api.md) - [All operations](https://skmtc.dev/fireserviceusa/apis/fireservice-usa-p2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fireserviceusa/apis/fireservice-usa-p2-api/revisions/96ea2ea68d87?raw)
