fleet/frontend/test/handlers
Scott Gress 2686907dba
Update API calls in front-end to use new, non-deprecated URLs and params (#41515)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #41391

# Details

This PR updates front-end API calls to use new URLs and API params, so
that the front end doesn't cause deprecation warnings to appear on the
server.

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.
n/a, should not be user-visible

## Testing

- [X] Added/updated automated tests
- [ ] QA'd all new/changed functionality manually
The biggest risk here is not that we missed a spot that still causes a
deprecation warning, but that we might inadvertently make a change that
breaks the front end, for instance by sending `fleet_id` to a function
that drops it silently and thus sends no ID to the server. Fortunately
we use TypeScript in virtually every place affected by these changes, so
the code would not compile if there were mismatches between the API
expectation and what we're sending. Still, spot checking as many places
as possible both for deprecation-warning leaks and loss of functionality
is important.

## Summary by CodeRabbit

* **Refactor**
* Updated API nomenclature across the application to use "fleets"
instead of "teams" and "reports" instead of "queries" in endpoint paths
and request/response payloads.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-03-12 22:26:48 -05:00
..
activity-handlers.ts add cancel upcoming host activities in the UI (#27879) 2025-04-07 12:11:24 +01:00
config-handlers.ts disabled manual agent install checkbox when setup experience software and run script is already added (#28679) 2025-04-30 16:22:24 +01:00
config-profiles.ts Feat UI host filter by custom profiles (#29038) 2025-05-15 12:37:45 +01:00
device-handler.ts Clean up DUP naming and imports (#39591) 2026-02-12 10:16:01 -08:00
label-handlers.ts disabled manual agent install checkbox when setup experience software and run script is already added (#28679) 2025-04-30 16:22:24 +01:00
script-handlers.ts Update API calls in front-end to use new, non-deprecated URLs and params (#41515) 2026-03-12 22:26:48 -05:00
setup-experience-handlers.ts UI: Make more specific and move down a level gating of Setup Experience UX to facilitate appropriate granular access to Linux and Android features (#32754) 2025-09-10 16:51:02 -07:00
software-handlers.ts Update UI for command results in host activity feed (#37417) 2025-12-18 11:52:25 -06:00
team-handlers.ts Update API calls in front-end to use new, non-deprecated URLs and params (#41515) 2026-03-12 22:26:48 -05:00