> This page is for version Prod (default).
> For other versions, use one of these documentation indexes:
> - Prod (default): https://docs.chrt.com/prod/llms.txt
> - Staging: https://docs.chrt.com/staging/llms.txt
> - Dev: https://docs.chrt.com/dev/llms.txt

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

# Update

PATCH https://api.chrt.com/shipping/cargo_on_flight_house_air_waybills/update/v1/{cargo_on_flight_house_air_waybill_id}
Content-Type: application/json

Updates a house air waybill, all but its number; one already sent is replaced at the airline only when it is sent again. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightHouseAirWaybillClientUpdate1) -> (CargoOnFlightHouseAirWaybill1)

Reference: https://docs.chrt.com/api-reference/api-reference/shipping/cargo-on-flight-house-air-waybills/update-v-1

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://api.chrt.com` (Production, default)
- `https://api.dev.chrt.com` (Development)
- `https://api.staging.chrt.com` (Staging)
- `https://localhost:8000` (Local)

## Request

### Path parameters

- `cargo_on_flight_house_air_waybill_id` (string, required)

### Body (application/json)

This endpoint expects a CargoOnFlightHouseAirWaybillClientUpdate1.

- `charges_declaration` (CargoOnFlightAirWaybillChargesDeclaration1, optional, nullable) — Currency, payment, and declared values, for the master or a house air waybill.
- `charges_declaration__set_to_None` (boolean, optional, default: false)
- `destination_iata` (string, optional, nullable)
- `gross_weight_kilograms` (double, optional, nullable)
- `manifest_description_of_goods` (string, optional, nullable)
- `number_of_pieces` (integer, optional, nullable)
- `origin_iata` (string, optional, nullable)
- `slac` (integer, optional, nullable)
- `slac__set_to_None` (boolean, optional, default: false)

## Response

### 200

Successful Response

- `_id` (string, required)
- `cargo_on_flight_air_waybill_id` (string, required)
- `cargo_on_flight_booking_id` (string, required)
- `created_at_timestamp` (string, required)
- `created_by_org_id` (string, required) — Must be a string starting with `org_`
- `destination_iata` (string, required)
- `gross_weight_kilograms` (double, required)
- `house_air_waybill_number` (string, required)
- `manifest_description_of_goods` (string, required)
- `number_of_pieces` (integer, required)
- `origin_iata` (string, required)
- `schema_version` (integer, required)
- `task_group_id` (string, required)
- `updated_at_timestamp` (string, required)
- `charges_declaration` (CargoOnFlightAirWaybillChargesDeclaration1, optional, nullable) — Currency, payment, and declared values, for the master or a house air waybill.
- `created_by_user_id` (string, optional, nullable)
- `latest_fhl_message` (CargoOnFlightHouseAirWaybillFhlMessage1, optional, nullable) — The latest send of the house in an FHL, and the airline's answer to it.
- `slac` (integer, optional, nullable)

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### CargoOnFlightAirWaybillChargesDeclaration1

Currency, payment, and declared values, for the master or a house air waybill.

- `charge_code` (enum, required) — IATA Cargo-IMP method of payment codes, e.g. PP all charges prepaid, CC all charges collect.
  - Allowed values: `CA`, `CB`, `CC`, `CE`, `CG`, `CH`, `CM`, `CP`, `CX`, `CZ`, `NC`, `NG`, `NP`, `NT`, `NX`, `NZ`, `PC`, `PD`, `PE`, `PF`, `PG`, `PH`, `PP`, `PX`, `PZ`
- `currency_code` (string, required)
- `declared_value_for_carriage` (double, optional, nullable)
- `declared_value_for_customs` (double, optional, nullable)
- `declared_value_for_insurance` (double, optional, nullable)
- `payment_other_charges` (enum, optional, nullable)
  - Allowed values: `prepaid`, `collect`
- `payment_weight_valuation` (enum, optional, nullable)
  - Allowed values: `prepaid`, `collect`

### CargoOnFlightHouseAirWaybillFhlMessage1

The latest send of the house in an FHL, and the airline's answer to it.

- `cargo_on_flight_integration` (enum, required)
  - Allowed values: `air_canada`, `cargoai`, `manual`
- `sent_at_timestamp` (string, required)
- `status` (enum, required)
  - Allowed values: `sent`, `accepted`, `rejected`
- `airline_response` (string, optional, nullable)
- `responded_at_timestamp` (string, optional, nullable)
- `responded_by_user_id` (string, optional, nullable)
- `response_provenance` (enum, optional, nullable)
  - Allowed values: `airline`, `manual`

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `ctx` (ValidationErrorCtx, optional)
- `input` (any, optional)

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "_id": "string",
  "cargo_on_flight_air_waybill_id": "string",
  "cargo_on_flight_booking_id": "string",
  "created_at_timestamp": "2024-01-15T09:30:00Z",
  "created_by_org_id": "string",
  "destination_iata": "string",
  "gross_weight_kilograms": 1.1,
  "house_air_waybill_number": "string",
  "manifest_description_of_goods": "string",
  "number_of_pieces": 1,
  "origin_iata": "string",
  "schema_version": 1,
  "task_group_id": "string",
  "updated_at_timestamp": "2024-01-15T09:30:00Z",
  "charges_declaration": {
    "charge_code": "CA",
    "currency_code": "string",
    "declared_value_for_carriage": 1.1,
    "declared_value_for_customs": 1.1,
    "declared_value_for_insurance": 1.1,
    "payment_other_charges": "prepaid",
    "payment_weight_valuation": "prepaid"
  },
  "created_by_user_id": "string",
  "latest_fhl_message": {
    "cargo_on_flight_integration": "air_canada",
    "sent_at_timestamp": "2024-01-15T09:30:00Z",
    "status": "sent",
    "airline_response": "string",
    "responded_at_timestamp": "2024-01-15T09:30:00Z",
    "responded_by_user_id": "string",
    "response_provenance": "airline"
  },
  "slac": 1
}
```

**SDK Code**

```python
import requests

url = "https://api.chrt.com/shipping/cargo_on_flight_house_air_waybills/update/v1/cargo_on_flight_house_air_waybill_id"

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://api.chrt.com/shipping/cargo_on_flight_house_air_waybills/update/v1/cargo_on_flight_house_air_waybill_id';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

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

```go
package main

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

func main() {

	url := "https://api.chrt.com/shipping/cargo_on_flight_house_air_waybills/update/v1/cargo_on_flight_house_air_waybill_id"

	payload := strings.NewReader("{}")

	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
require 'uri'
require 'net/http'

url = URI("https://api.chrt.com/shipping/cargo_on_flight_house_air_waybills/update/v1/cargo_on_flight_house_air_waybill_id")

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 = "{}"

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

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

HttpResponse<String> response = Unirest.patch("https://api.chrt.com/shipping/cargo_on_flight_house_air_waybills/update/v1/cargo_on_flight_house_air_waybill_id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.chrt.com/shipping/cargo_on_flight_house_air_waybills/update/v1/cargo_on_flight_house_air_waybill_id', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.chrt.com/shipping/cargo_on_flight_house_air_waybills/update/v1/cargo_on_flight_house_air_waybill_id");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.chrt.com/shipping/cargo_on_flight_house_air_waybills/update/v1/cargo_on_flight_house_air_waybill_id")! 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()
```