---
title: "Assigns a driver to a shipment"
method: PUT
path: "/shipment/assign"
tags: ["Carrier"]
---

# Assigns a driver to a shipment

`PUT /shipment/assign`

Assigns a driver to an accepted offer. Both the `offer_id` and the `driver_id` are required.

## Request body

- AssignDriverRequest
  - `offer_id` string, required
  - `driver_id` string, required

## Response `200`

Status Code 200: Successful Response - the request was successful!

- AssignDriverResponse
  - `success` boolean
  - `jobs` string[]

## Other responses

- `400` — Status Code 400: Bad Request Response - the request header and/or body is invalid
- `500` — Status Code 500: Internal Server Error Response - there's a problem with the Public API service

---

[API](https://skmtc.dev/cargomatic/apis/cargomatic-public-api.md) · [All operations](https://skmtc.dev/cargomatic/apis/cargomatic-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cargomatic/cargomatic-public-api/revisions/f9a170e1fd72/schema)
