# roles on POST /v2/members/search stops working

Calls to POST /v2/members/search, body parameter data.roles on Productboard API stopped working on April 14, 2026.

Productboard API removed the legacy flat body parameter data.roles on POST /v2/members/search on April 14, 2026. Requests to POST /v2/members/search using data.roles fail since that date. The change removes deprecated legacy flat request body properties in favor of structured objects.

## What to use instead

Send the members filters in the structured data.filter, data.search, and data.return objects, such as data.filter.id, data.filter.fields.*, data.search.query, data.return.includeDisabled, and data.return.includeInvitationPending.

- API: Productboard API (api.productboard.com)
- Kind: Parameter removal
- Announced: April 7, 2026
- Takes effect: April 14, 2026
- Calls after that day: fail
- Calls it hits: `POST /v2/members/search`, `body parameter data.roles`
- Source: [Announcement](https://developer.productboard.com/changelog/2026-04-14)
- Verified: November 6, 2026, against Productboard API's own pages
- Page: https://www.okapi.bot/providers/productboard-api/breaking-changes/roles-on-post-v2-members-search-stops-working/

## Productboard API's words

> Removed deprecated legacy flat properties ( ids, emails, roles, includeDisabled, includeInvitationPending, query) from the request body. Use the structured filter, search, and return objects instead

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