For the complete documentation index, see llms.txt. For the full documentation snapshot, see llms-full.txt.
Fetch the custom roles that have been assigned to the team. To learn more, read Managing team permissions.
curl --request GET \
--url https://app.launchdarkly.com/api/v2/teams/{teamKey}/roles \
--header 'Authorization: <api-key>'{
"totalCount": 1,
"items": [
{
"key": "role-key-123abc",
"name": "Example role",
"projects": {
"totalCount": 1,
"items": [
{
"_links": {
"environments": {
"href": "/api/v2/projects/example-project/environments",
"type": "application/json"
},
"self": {
"href": "/api/v2/projects/example-project",
"type": "application/json"
}
},
"key": "project-key-123abc",
"name": "Example project"
}
]
},
"appliedOn": "1648672018410"
}
],
"_links": {
"self": {
"href": "/api/v2/teams/example-team/roles?limit=25",
"type": "application/json"
}
}
}Documentation Index
Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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.
Team roles response
The number of custom roles assigned to this team
1
An array of the custom roles that have been assigned to this team
Show child attributes
The location and content type of related resources
Show child attributes
{
"self": {
"href": "/api/v2/teams/example-team/roles?limit=25",
"type": "application/json"
}
}curl --request GET \
--url https://app.launchdarkly.com/api/v2/teams/{teamKey}/roles \
--header 'Authorization: <api-key>'{
"totalCount": 1,
"items": [
{
"key": "role-key-123abc",
"name": "Example role",
"projects": {
"totalCount": 1,
"items": [
{
"_links": {
"environments": {
"href": "/api/v2/projects/example-project/environments",
"type": "application/json"
},
"self": {
"href": "/api/v2/projects/example-project",
"type": "application/json"
}
},
"key": "project-key-123abc",
"name": "Example project"
}
]
},
"appliedOn": "1648672018410"
}
],
"_links": {
"self": {
"href": "/api/v2/teams/example-team/roles?limit=25",
"type": "application/json"
}
}
}