> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.schoolset.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.schoolset.io/_mcp/server.

# Update a bus driver

PATCH https://ssuccessv2.com/app/api/v1/bussing/driver/update/{id}
Content-Type: application/json

Updates a driver's contact details and replaces the driver's saved addresses. The frontend submits this as a POST with _method=patch; this operation documents the routed PATCH contract.

Reference: https://docs.schoolset.io/api-reference/school-set-api/bussing-drivers/update-bussing-driver

## Authentication

- `Authorization` header (bearer token, required) — The signed-in SchoolSet user token sent by the frontend.

## Request

### Path parameters

- `id` (long, required) — Driver identifier.

### Body (application/json)

This endpoint expects an object.

- `name` (string, required)
- `phone` (string, optional, nullable)
- `email` (string, optional, nullable)
- `address` (list of ApiV1BussingDriverUpdateIdPatchRequestBodyContentApplicationJsonSchemaAddressItems, optional)

## Response

### 200

Updated driver.

- `status` (string, optional)
- `message` (string, optional)
- `data` (ApiV1BussingDriverUpdateIdPatchResponsesContentApplicationJsonSchemaData, optional)

## Errors

### 401 Unauthorized Error

Authentication required

- `status` (string, required)
- `message` (string, required)
- `data` (any, optional, nullable)

### 403 Forbidden Error

The user cannot edit bussing

- `status` (string, required)
- `message` (string, required)
- `data` (any, optional, nullable)

### 404 Not Found Error

Driver not found

- `status` (string, required)
- `message` (string, required)
- `data` (any, optional, nullable)

### 422 Unprocessable Entity Error

Invalid driver data

- `message` (string, required)
- `errors` (map from string to list of string, required)

## Types

### ApiV1BussingDriverUpdateIdPatchRequestBodyContentApplicationJsonSchemaAddressItems

- `splitted` (ApiV1BussingDriverUpdateIdPatchRequestBodyContentApplicationJsonSchemaAddressItemsSplitted, required)
- `id` (integer, optional, nullable)
- `formatted` (string, optional)
- `longitude` (double, optional)
- `latitude` (double, optional)
- `tag` (string, optional)

### ApiV1BussingDriverUpdateIdPatchResponsesContentApplicationJsonSchemaData

- `id` (integer, optional)
- `name` (string, optional)
- `phone` (string, optional, nullable)
- `email` (string, optional, nullable)
- `addresses` (list of ApiV1BussingDriverUpdateIdPatchResponsesContentApplicationJsonSchemaDataAddressesItems, optional)
- `created_by` (string, optional, nullable)

### ApiV1BussingDriverUpdateIdPatchRequestBodyContentApplicationJsonSchemaAddressItemsSplitted

- `address_line_1` (string, optional)
- `city` (string, optional)
- `state` (string, optional)
- `zip` (string, optional)
- `country` (string, optional)
- `address_line_2` (string, optional, nullable)

### ApiV1BussingDriverUpdateIdPatchResponsesContentApplicationJsonSchemaDataAddressesItems

## Examples

**Request**

```json
{
  "name": "Marcus Johnson",
  "phone": "+1 617 555 0142",
  "email": "marcus.johnson@example.edu",
  "address": [
    {
      "splitted": {
        "address_line_1": "18 Beacon Street",
        "city": "Boston",
        "state": "MA",
        "zip": "02108",
        "country": "US"
      },
      "id": 412,
      "formatted": "18 Beacon Street, Boston, MA 02108, US",
      "longitude": -71.0589,
      "latitude": 42.3584,
      "tag": "Home"
    }
  ]
}
```

**Response**

```json
{
  "status": "success",
  "message": "Saved successfully.",
  "data": {
    "id": 27,
    "name": "Marcus Johnson",
    "phone": "+1 617 555 0142",
    "email": "marcus.johnson@example.edu",
    "addresses": [
      {
        "id": 412,
        "formatted": "18 Beacon Street, Boston, MA 02108, US",
        "splitted": {
          "address_line_1": "18 Beacon Street",
          "city": "Boston",
          "state": "MA",
          "zip": "02108",
          "country": "US"
        },
        "components": {},
        "longitude": -71.0589,
        "latitude": 42.3584,
        "custom_longitude": null,
        "custom_latitude": null,
        "original_longitude": -71.0589,
        "original_latitude": 42.3584,
        "tag": "Home"
      }
    ],
    "created_by": "Sarah Williams"
  }
}
```

**SDK Code**

```python Bussing drivers_updateBussingDriver_example
import requests

url = "https://ssuccessv2.com/app/api/v1/bussing/driver/update/27"

payload = {
    "name": "Marcus Johnson",
    "phone": "+1 617 555 0142",
    "email": "marcus.johnson@example.edu",
    "address": [
        {
            "splitted": {
                "address_line_1": "18 Beacon Street",
                "city": "Boston",
                "state": "MA",
                "zip": "02108",
                "country": "US"
            },
            "id": 412,
            "formatted": "18 Beacon Street, Boston, MA 02108, US",
            "longitude": -71.0589,
            "latitude": 42.3584,
            "tag": "Home"
        }
    ]
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript Bussing drivers_updateBussingDriver_example
const url = 'https://ssuccessv2.com/app/api/v1/bussing/driver/update/27';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"name":"Marcus Johnson","phone":"+1 617 555 0142","email":"marcus.johnson@example.edu","address":[{"splitted":{"address_line_1":"18 Beacon Street","city":"Boston","state":"MA","zip":"02108","country":"US"},"id":412,"formatted":"18 Beacon Street, Boston, MA 02108, US","longitude":-71.0589,"latitude":42.3584,"tag":"Home"}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Bussing drivers_updateBussingDriver_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://ssuccessv2.com/app/api/v1/bussing/driver/update/27"

	payload := strings.NewReader("{\n  \"name\": \"Marcus Johnson\",\n  \"phone\": \"+1 617 555 0142\",\n  \"email\": \"marcus.johnson@example.edu\",\n  \"address\": [\n    {\n      \"splitted\": {\n        \"address_line_1\": \"18 Beacon Street\",\n        \"city\": \"Boston\",\n        \"state\": \"MA\",\n        \"zip\": \"02108\",\n        \"country\": \"US\"\n      },\n      \"id\": 412,\n      \"formatted\": \"18 Beacon Street, Boston, MA 02108, US\",\n      \"longitude\": -71.0589,\n      \"latitude\": 42.3584,\n      \"tag\": \"Home\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Bussing drivers_updateBussingDriver_example
require 'uri'
require 'net/http'

url = URI("https://ssuccessv2.com/app/api/v1/bussing/driver/update/27")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"name\": \"Marcus Johnson\",\n  \"phone\": \"+1 617 555 0142\",\n  \"email\": \"marcus.johnson@example.edu\",\n  \"address\": [\n    {\n      \"splitted\": {\n        \"address_line_1\": \"18 Beacon Street\",\n        \"city\": \"Boston\",\n        \"state\": \"MA\",\n        \"zip\": \"02108\",\n        \"country\": \"US\"\n      },\n      \"id\": 412,\n      \"formatted\": \"18 Beacon Street, Boston, MA 02108, US\",\n      \"longitude\": -71.0589,\n      \"latitude\": 42.3584,\n      \"tag\": \"Home\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
```

```java Bussing drivers_updateBussingDriver_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://ssuccessv2.com/app/api/v1/bussing/driver/update/27")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"name\": \"Marcus Johnson\",\n  \"phone\": \"+1 617 555 0142\",\n  \"email\": \"marcus.johnson@example.edu\",\n  \"address\": [\n    {\n      \"splitted\": {\n        \"address_line_1\": \"18 Beacon Street\",\n        \"city\": \"Boston\",\n        \"state\": \"MA\",\n        \"zip\": \"02108\",\n        \"country\": \"US\"\n      },\n      \"id\": 412,\n      \"formatted\": \"18 Beacon Street, Boston, MA 02108, US\",\n      \"longitude\": -71.0589,\n      \"latitude\": 42.3584,\n      \"tag\": \"Home\"\n    }\n  ]\n}")
  .asString();
```

```php Bussing drivers_updateBussingDriver_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://ssuccessv2.com/app/api/v1/bussing/driver/update/27', [
  'body' => '{
  "name": "Marcus Johnson",
  "phone": "+1 617 555 0142",
  "email": "marcus.johnson@example.edu",
  "address": [
    {
      "splitted": {
        "address_line_1": "18 Beacon Street",
        "city": "Boston",
        "state": "MA",
        "zip": "02108",
        "country": "US"
      },
      "id": 412,
      "formatted": "18 Beacon Street, Boston, MA 02108, US",
      "longitude": -71.0589,
      "latitude": 42.3584,
      "tag": "Home"
    }
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Bussing drivers_updateBussingDriver_example
using RestSharp;

var client = new RestClient("https://ssuccessv2.com/app/api/v1/bussing/driver/update/27");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"Marcus Johnson\",\n  \"phone\": \"+1 617 555 0142\",\n  \"email\": \"marcus.johnson@example.edu\",\n  \"address\": [\n    {\n      \"splitted\": {\n        \"address_line_1\": \"18 Beacon Street\",\n        \"city\": \"Boston\",\n        \"state\": \"MA\",\n        \"zip\": \"02108\",\n        \"country\": \"US\"\n      },\n      \"id\": 412,\n      \"formatted\": \"18 Beacon Street, Boston, MA 02108, US\",\n      \"longitude\": -71.0589,\n      \"latitude\": 42.3584,\n      \"tag\": \"Home\"\n    }\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Bussing drivers_updateBussingDriver_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "name": "Marcus Johnson",
  "phone": "+1 617 555 0142",
  "email": "marcus.johnson@example.edu",
  "address": [
    [
      "splitted": [
        "address_line_1": "18 Beacon Street",
        "city": "Boston",
        "state": "MA",
        "zip": "02108",
        "country": "US"
      ],
      "id": 412,
      "formatted": "18 Beacon Street, Boston, MA 02108, US",
      "longitude": -71.0589,
      "latitude": 42.3584,
      "tag": "Home"
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://ssuccessv2.com/app/api/v1/bussing/driver/update/27")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```