# adults on POST /stays/search is deprecated

Duffel API deprecated POST /stays/search, body parameter adults without giving a shutdown date yet.

The body parameter adults on POST /stays/search has been deprecated without a shutdown date. Calls that continue to rely on this parameter will eventually fail once it is removed. The provider announced this change on June 18, 2024, noting that customers must move to the new guests field.

## What to use instead

Send a guests array instead of adults, including one entry per guest with type adult or child and the child's age. This update requires modifying your request payload structure beyond changing an identifier.

- API: Duffel API (api.duffel.com)
- Kind: Endpoint removal
- Announced: June 18, 2024
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `POST /stays/search`, `body parameter adults`
- Source: [Announcement](https://changelog.duffel.com/announcements/you-can-now-book-with-children-via-the-stays-api)
- Verified: October 26, 2026, against Duffel API's own pages
- Page: https://www.okapi.bot/providers/duffel-api/breaking-changes/adults-on-post-stays-search-is-deprecated/

## Duffel API's words

> customers must move from the now deprecated adults field in location and accommodation search, and instead use our new guests field

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
