---
title: "Upsert a driver profile"
method: PUT
path: "/dispatch/driver-profiles"
tags: ["Driver Profiles", "Dispatch"]
---

# Upsert a driver profile

`PUT /dispatch/driver-profiles`

## Request

- Base URL: `https://api.equipmentshare.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.equipmentshare.com/dispatch/driver-profiles`
- Auth: HTTP bearer

Create or update a driver profile and upsert supplied branch configuration rows.

## Request body

- DriverProfileUpsert
  - `avatar_url` string, nullable
  - `branches` DriverProfileBranchInput[]
    - `branch_id` integer, required
    - `is_hidden` boolean
    - `map_color` string, nullable
    - `schedule` object
  - `driver_profile_id` integer, nullable
  - `name` string, nullable
  - `notes` string, nullable
  - `user_id` integer, nullable
  - `vendor_id` integer, nullable

## Response `200`

Profile upserted successfully

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `404`: Profile not found
- `default`

---

[API](https://skmtc.dev/equipmentshare/apis/es-api.md) - [All operations](https://skmtc.dev/equipmentshare/apis/es-api/llms.txt) - [OpenAPI document](https://skmtc.dev/equipmentshare/apis/es-api/revisions/40651e1558ac?raw)
