provider Teams GET /api/v2/teams/{teamKey}/roles
@utdk/launchdarkly /api/v2/teams/{teamKey}/roles
Get team custom roles
Fetch the custom roles that have been assigned to the team. To learn more, read [Managing team permissions](https://launchdarkly.com/docs/home/account/team-permissions).
teamKey path required
The team key
string
limit query
The number of roles to return in the response. Defaults to 20.
integer
offset query
Where to start in the list. This is for use with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`.
integer

Try it

Authentication
Configure credentials for LaunchDarkly REST API
getteamroles
GET/api/v2/teams/{teamKey}/roles
Fetch the custom roles that have been assigned to the team. To learn more, read [Managing team permissions](https://launchdarkly.com/docs/home/account/team-permissions).

Parameters

required

The team key

The number of roles to return in the response. Defaults to 20.

Where to start in the list. This is for use with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import launchdarkly from '@utdk/launchdarkly';

await launchdarkly.getteamroles()