# environment_tier on GET /api/v4/groups/{}/dora/metrics stops working

Calls to GET /api/v4/groups/{id}/dora/metrics, query parameter environment_tier on GitLab API stopped working on May 22, 2023.

On May 22, 2023, the query parameter environment_tier was removed from the GET /api/v4/groups/{id}/dora/metrics endpoint. Requests that continue to pass this parameter fail. The parameter was deprecated to avoid confusion and duplication.

## What to use instead

Send environment_tiers as an array instead of environment_tier.

- API: GitLab API (gitlab.com)
- Kind: Parameter removal
- Announced: January 22, 2023
- Takes effect: May 22, 2023
- Calls after that day: fail
- Calls it hits: `GET /api/v4/groups/{id}/dora/metrics`, `query parameter environment_tier`
- Source: [Announcement](https://gitlab.com/gitlab-org/gitlab/-/raw/master/doc/update/deprecations.md)
- Verified: November 6, 2026, against GitLab API's own pages
- Page: https://www.okapi.bot/providers/gitlab-api/breaking-changes/environment-tier-on-get-api-v4-groups-dora-metrics-stops-working/

## GitLab API's words

> To avoid confusion and duplication, the `environment_tier` parameter is deprecated in favor of the `environment_tiers` parameter.

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