---
title: "Book a new flight for a user"
method: PUT
path: "/api/tenants/{tenant}/user/{username}/flights"
tags: ["tenants"]
---

# Book a new flight for a user

`PUT /api/tenants/{tenant}/user/{username}/flights`

## Path parameters

- `tenant` string, required
- `username` string, required

## Request body

- object
  - `flights` unknown[]
    - unknown

## Response `200`

Returns flight data and query context information

- ResultSingleton
  - `context` string[]
  - `data` object

## Other responses

- `401` — Returns an authentication error

---

[API](https://skmtc.net/couchbase/apis/travel-sample-api.md) · [All operations](https://skmtc.net/couchbase/apis/travel-sample-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/couchbase/travel-sample-api/versions/32d71654e84c/schema)
