---
title: "Set Carrier ID for Leg"
method: PUT
path: "/public/v3/Shipments/{shipmentId}/Legs/{legIndex}/carrierId"
tags: ["Shipments"]
---

# Set Carrier ID for Leg

`PUT /public/v3/Shipments/{shipmentId}/Legs/{legIndex}/carrierId`

Updates a shipment leg with a new carrier ID.

## Path parameters

- `shipmentId` string, required
- `legIndex` integer, required

## Query parameters

- `carrierId` string, uuid, required

## Headers

- `x-tive-account-id` integer, required

## Response `200`

Carrier ID updated

## Other responses

- `400` — Unable to update the carrier ID. See response message for details.
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/tive/apis/tive-public-api.md) · [All operations](https://skmtc.net/tive/apis/tive-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tive/tive-public-api/revisions/9a8d869e3cdc/schema)
