---
title: "Update User"
method: PUT
path: "/users"
---

# Update User

`PUT /users`

## Request

- Base URL: `https://api.cargoai.co/solutions`
- URL: `https://api.cargoai.co/solutions/users`
- Auth: API key in header `x-api-key`

This endpoint allows you to add offices to any user already created and associated with your API key. Field formats are listed on the [Data Format](/reference/data-format) page.

## Headers

- `x-api-key` string, required

## Request body

- object
  - `firstName` string: first name of the user
  - `lastName` string: last name of the user
  - `email` string, required: user's email address
  - `companyName` string: user's company name
  - `partnerId` string: The user's identifier in your own (partner) system.
  - `offices` object[], required: list of offices to add
    - `iataCode` string: office's IATA code
    - `cassCode` string: office's CASS code
    - `countryCode` string, required: office's country code
    - `officeAirportCode` string: office's airport code (or closest airport)

## Response `200`

200

- object
  - `status` 'Activated' | 'Manual activation' | 'Pending validation' | 'Pending company validation': account status of the user. Omitted when the status is not one of the listed values.
  - `message` string: result of the request
  - `token` string: authentication token for the CargoMART portal
  - `link` string: redirection link to the CargoMART portal, including the token

## Other responses

- `400`: 400
- `403`: 403
- `409`: 409
- `500`: 500

## Changes

- **2026-11-03** `dfd7950d43d7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cargoai/apis/solutions/changes/users/put.md)

---

[API](https://skmtc.dev/cargoai/apis/solutions.md) - [All operations](https://skmtc.dev/cargoai/apis/solutions/llms.txt) - [OpenAPI document](https://skmtc.dev/cargoai/apis/solutions/revisions/dfd7950d43d7?raw)
