provider Teams POST /api/v2/teams
@utdk/launchdarkly /api/v2/teams
Create team
Create a team. To learn more, read [Creating a team](https://launchdarkly.com/docs/home/account/create-teams). ### Expanding the teams response LaunchDarkly supports four fields for expanding the "Create team" response. By default, these fields are **not** included in the response. To expand the response, append the `expand` query parameter and add a comma-separated list with any of the following fields: * `members` includes the total count of members that belong to the team. * `roles` includes a paginated list of the custom roles that you have assigned to the team. * `projects` includes a paginated list of the projects that the team has any write access to. * `maintainers` includes a paginated list of the maintainers that you have assigned to the team. For example, `expand=members,roles` includes the `members` and `roles` fields in the response.
expand query
A comma-separated list of properties that can reveal additional information in the response. Supported fields are explained above.
string

Try it

Authentication
Configure credentials for LaunchDarkly REST API
postteam
POST/api/v2/teams
Create a team. To learn more, read [Creating a team](https://launchdarkly.com/docs/home/account/create-teams). ### Expanding the teams response LaunchDarkly supports four fields for expanding the "Create team" response. By default, these fields are **not** included in the response. To expand the response, append the `expand` query parameter and add a comma-separated list with any of the following fields: * `members` includes the total count of members that belong to the team. * `roles` includes a paginated list of the custom roles that you have assigned to the team. * `projects` includes a paginated list of the projects that the team has any write access to. * `maintainers` includes a paginated list of the maintainers that you have assigned to the team. For example, `expand=members,roles` includes the `members` and `roles` fields in the response.

A comma-separated list of properties that can reveal additional information in the response. Supported fields are explained above.

Input

List of custom role keys the team will access

A description of the team

required

The team key

A list of member IDs who belong to the team

required

A human-friendly name for the team

A list of permission grants. Permission grants allow access to a specific action, without having to create or update a custom role.

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.postteam()