curl --request POST \
--url https://app.launchdarkly.com/api/v2/projects/{projectKey}/views/{viewKey}/link/{resourceType} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"filter": "maintainerId:507f1f77bcf86cd799439011,tags:backend+beta",
"keys": [
"flag-1",
"flag-2"
],
"comment": ""
}
'import requests
url = "https://app.launchdarkly.com/api/v2/projects/{projectKey}/views/{viewKey}/link/{resourceType}"
payload = {
"filter": "maintainerId:507f1f77bcf86cd799439011,tags:backend+beta",
"keys": ["flag-1", "flag-2"],
"comment": ""
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filter: 'maintainerId:507f1f77bcf86cd799439011,tags:backend+beta',
keys: ['flag-1', 'flag-2'],
comment: ''
})
};
fetch('https://app.launchdarkly.com/api/v2/projects/{projectKey}/views/{viewKey}/link/{resourceType}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.launchdarkly.com/api/v2/projects/{projectKey}/views/{viewKey}/link/{resourceType}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filter' => 'maintainerId:507f1f77bcf86cd799439011,tags:backend+beta',
'keys' => [
'flag-1',
'flag-2'
],
'comment' => ''
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.launchdarkly.com/api/v2/projects/{projectKey}/views/{viewKey}/link/{resourceType}"
payload := strings.NewReader("{\n \"filter\": \"maintainerId:507f1f77bcf86cd799439011,tags:backend+beta\",\n \"keys\": [\n \"flag-1\",\n \"flag-2\"\n ],\n \"comment\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.launchdarkly.com/api/v2/projects/{projectKey}/views/{viewKey}/link/{resourceType}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filter\": \"maintainerId:507f1f77bcf86cd799439011,tags:backend+beta\",\n \"keys\": [\n \"flag-1\",\n \"flag-2\"\n ],\n \"comment\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.launchdarkly.com/api/v2/projects/{projectKey}/views/{viewKey}/link/{resourceType}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filter\": \"maintainerId:507f1f77bcf86cd799439011,tags:backend+beta\",\n \"keys\": [\n \"flag-1\",\n \"flag-2\"\n ],\n \"comment\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"linkedResources": {
"_links": {
"next": {
"href": "href",
"type": "type"
},
"last": {
"href": "href",
"type": "type"
},
"prev": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
},
"first": {
"href": "href",
"type": "type"
}
},
"totalCount": 5,
"items": [
{
"environmentId": "environmentId",
"resourceKey": "resourceKey",
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"resourceDetails": {
"view": {
"metricsExpanded": {
"totalCount": 6,
"items": [
{
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
},
{
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
}
]
},
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"maintainer": {
"kind": "kind",
"maintainerMember": {
"firstName": "firstName",
"lastName": "lastName",
"role": "role",
"id": "id",
"email": "email"
},
"id": "id",
"maintainerTeam": {
"name": "name",
"id": "id",
"key": "key"
}
},
"metricsSummary": {
"count": 3
},
"createdAt": 6,
"projectKey": "projectKey",
"_access": {
"allowed": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
],
"denied": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
]
},
"generateSdkKeys": true,
"flagsSummary": {
"count": 5,
"linkedFlags": {
"totalCount": 2,
"items": [
{
"name": "name",
"links": {
"self": {
"href": "href",
"type": "type"
}
},
"key": "key"
},
{
"name": "name",
"links": {
"self": {
"href": "href",
"type": "type"
}
},
"key": "key"
}
]
}
},
"id": "id",
"aiConfigsSummary": {
"count": 2
},
"key": "key",
"updatedAt": 1,
"payloadSummary": {
"sdkKeyCount": 6
},
"resourcesExpanded": {
"totalCount": 7,
"items": {
"flags": {
"totalCount": 5,
"items": [
{
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
},
{
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
}
]
},
"aiConfigs": {
"totalCount": 3,
"items": [
{
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
},
{
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
}
]
},
"metrics": {
"totalCount": 3,
"items": [
{
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
},
{
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
}
]
},
"segments": {
"totalCount": 6,
"items": [
{
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
},
{
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
}
]
}
}
},
"resourceSummary": {
"flagCount": 4,
"metricCount": 1,
"totalCount": 1,
"segmentCount": 7,
"aiConfigCount": 1
},
"version": 0,
"tags": [
"tags",
"tags"
],
"applicationSummary": {
"applicationKey": "applicationKey"
},
"accountId": "accountId",
"deletedAt": 5,
"deleted": false,
"name": "name",
"segmentsSummary": {
"linkedSegments": {
"totalCount": 9,
"items": [
{
"environmentId": "environmentId",
"name": "name",
"links": {
"self": {
"href": "href",
"type": "type"
}
},
"key": "key"
},
{
"environmentId": "environmentId",
"name": "name",
"links": {
"self": {
"href": "href",
"type": "type"
}
},
"key": "key"
}
]
},
"count": 7
},
"aiConfigsExpanded": {
"totalCount": 6,
"items": [
{
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
},
{
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
}
]
},
"segmentsExpanded": {
"totalCount": 8,
"items": [
{
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
},
{
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
}
]
},
"_affectsSdkPayload": true,
"projectId": "projectId",
"flagsExpanded": {
"totalCount": 4,
"items": [
{
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
},
{
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
}
]
}
},
"flag": {
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
},
"metric": {
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
},
"segment": {
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
},
"aiConfig": {
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
}
},
"linkedAt": 1,
"environmentKey": "environmentKey",
"resourceType": "flag"
},
{
"environmentId": "environmentId",
"resourceKey": "resourceKey",
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"resourceDetails": {
"view": {
"metricsExpanded": {
"totalCount": 6,
"items": [
{
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
},
{
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
}
]
},
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"maintainer": {
"kind": "kind",
"maintainerMember": {
"firstName": "firstName",
"lastName": "lastName",
"role": "role",
"id": "id",
"email": "email"
},
"id": "id",
"maintainerTeam": {
"name": "name",
"id": "id",
"key": "key"
}
},
"metricsSummary": {
"count": 3
},
"createdAt": 6,
"projectKey": "projectKey",
"_access": {
"allowed": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
],
"denied": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
]
},
"generateSdkKeys": true,
"flagsSummary": {
"count": 5,
"linkedFlags": {
"totalCount": 2,
"items": [
{
"name": "name",
"links": {
"self": {
"href": "href",
"type": "type"
}
},
"key": "key"
},
{
"name": "name",
"links": {
"self": {
"href": "href",
"type": "type"
}
},
"key": "key"
}
]
}
},
"id": "id",
"aiConfigsSummary": {
"count": 2
},
"key": "key",
"updatedAt": 1,
"payloadSummary": {
"sdkKeyCount": 6
},
"resourcesExpanded": {
"totalCount": 7,
"items": {
"flags": {
"totalCount": 5,
"items": [
{
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
},
{
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
}
]
},
"aiConfigs": {
"totalCount": 3,
"items": [
{
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
},
{
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
}
]
},
"metrics": {
"totalCount": 3,
"items": [
{
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
},
{
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
}
]
},
"segments": {
"totalCount": 6,
"items": [
{
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
},
{
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
}
]
}
}
},
"resourceSummary": {
"flagCount": 4,
"metricCount": 1,
"totalCount": 1,
"segmentCount": 7,
"aiConfigCount": 1
},
"version": 0,
"tags": [
"tags",
"tags"
],
"applicationSummary": {
"applicationKey": "applicationKey"
},
"accountId": "accountId",
"deletedAt": 5,
"deleted": false,
"name": "name",
"segmentsSummary": {
"linkedSegments": {
"totalCount": 9,
"items": [
{
"environmentId": "environmentId",
"name": "name",
"links": {
"self": {
"href": "href",
"type": "type"
}
},
"key": "key"
},
{
"environmentId": "environmentId",
"name": "name",
"links": {
"self": {
"href": "href",
"type": "type"
}
},
"key": "key"
}
]
},
"count": 7
},
"aiConfigsExpanded": {
"totalCount": 6,
"items": [
{
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
},
{
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
}
]
},
"segmentsExpanded": {
"totalCount": 8,
"items": [
{
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
},
{
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
}
]
},
"_affectsSdkPayload": true,
"projectId": "projectId",
"flagsExpanded": {
"totalCount": 4,
"items": [
{
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
},
{
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
}
]
}
},
"flag": {
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
},
"metric": {
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
},
"segment": {
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
},
"aiConfig": {
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
}
},
"linkedAt": 1,
"environmentKey": "environmentKey",
"resourceType": "flag"
}
]
},
"failedResources": [
{
"environmentId": "environmentId",
"resourceKey": "resourceKey",
"errorMessage": "errorMessage",
"resourceType": "flag"
},
{
"environmentId": "environmentId",
"resourceKey": "resourceKey",
"errorMessage": "errorMessage",
"resourceType": "flag"
}
],
"successCount": 0,
"failureCount": 6
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}Link resource
Link one or multiple resources to a view by keys, filters, or both:
- Link flags using flag keys or filters (maintainerId, maintainerTeamKey, tags, state, query)
- Link segments using segment IDs or filters (tags, query, unbounded)
- Link AI configs using config keys
When both keys and filters are provided, resources matching either condition are linked (union).
curl --request POST \
--url https://app.launchdarkly.com/api/v2/projects/{projectKey}/views/{viewKey}/link/{resourceType} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"filter": "maintainerId:507f1f77bcf86cd799439011,tags:backend+beta",
"keys": [
"flag-1",
"flag-2"
],
"comment": ""
}
'import requests
url = "https://app.launchdarkly.com/api/v2/projects/{projectKey}/views/{viewKey}/link/{resourceType}"
payload = {
"filter": "maintainerId:507f1f77bcf86cd799439011,tags:backend+beta",
"keys": ["flag-1", "flag-2"],
"comment": ""
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filter: 'maintainerId:507f1f77bcf86cd799439011,tags:backend+beta',
keys: ['flag-1', 'flag-2'],
comment: ''
})
};
fetch('https://app.launchdarkly.com/api/v2/projects/{projectKey}/views/{viewKey}/link/{resourceType}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.launchdarkly.com/api/v2/projects/{projectKey}/views/{viewKey}/link/{resourceType}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filter' => 'maintainerId:507f1f77bcf86cd799439011,tags:backend+beta',
'keys' => [
'flag-1',
'flag-2'
],
'comment' => ''
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.launchdarkly.com/api/v2/projects/{projectKey}/views/{viewKey}/link/{resourceType}"
payload := strings.NewReader("{\n \"filter\": \"maintainerId:507f1f77bcf86cd799439011,tags:backend+beta\",\n \"keys\": [\n \"flag-1\",\n \"flag-2\"\n ],\n \"comment\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.launchdarkly.com/api/v2/projects/{projectKey}/views/{viewKey}/link/{resourceType}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filter\": \"maintainerId:507f1f77bcf86cd799439011,tags:backend+beta\",\n \"keys\": [\n \"flag-1\",\n \"flag-2\"\n ],\n \"comment\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.launchdarkly.com/api/v2/projects/{projectKey}/views/{viewKey}/link/{resourceType}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filter\": \"maintainerId:507f1f77bcf86cd799439011,tags:backend+beta\",\n \"keys\": [\n \"flag-1\",\n \"flag-2\"\n ],\n \"comment\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"linkedResources": {
"_links": {
"next": {
"href": "href",
"type": "type"
},
"last": {
"href": "href",
"type": "type"
},
"prev": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
},
"first": {
"href": "href",
"type": "type"
}
},
"totalCount": 5,
"items": [
{
"environmentId": "environmentId",
"resourceKey": "resourceKey",
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"resourceDetails": {
"view": {
"metricsExpanded": {
"totalCount": 6,
"items": [
{
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
},
{
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
}
]
},
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"maintainer": {
"kind": "kind",
"maintainerMember": {
"firstName": "firstName",
"lastName": "lastName",
"role": "role",
"id": "id",
"email": "email"
},
"id": "id",
"maintainerTeam": {
"name": "name",
"id": "id",
"key": "key"
}
},
"metricsSummary": {
"count": 3
},
"createdAt": 6,
"projectKey": "projectKey",
"_access": {
"allowed": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
],
"denied": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
]
},
"generateSdkKeys": true,
"flagsSummary": {
"count": 5,
"linkedFlags": {
"totalCount": 2,
"items": [
{
"name": "name",
"links": {
"self": {
"href": "href",
"type": "type"
}
},
"key": "key"
},
{
"name": "name",
"links": {
"self": {
"href": "href",
"type": "type"
}
},
"key": "key"
}
]
}
},
"id": "id",
"aiConfigsSummary": {
"count": 2
},
"key": "key",
"updatedAt": 1,
"payloadSummary": {
"sdkKeyCount": 6
},
"resourcesExpanded": {
"totalCount": 7,
"items": {
"flags": {
"totalCount": 5,
"items": [
{
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
},
{
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
}
]
},
"aiConfigs": {
"totalCount": 3,
"items": [
{
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
},
{
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
}
]
},
"metrics": {
"totalCount": 3,
"items": [
{
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
},
{
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
}
]
},
"segments": {
"totalCount": 6,
"items": [
{
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
},
{
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
}
]
}
}
},
"resourceSummary": {
"flagCount": 4,
"metricCount": 1,
"totalCount": 1,
"segmentCount": 7,
"aiConfigCount": 1
},
"version": 0,
"tags": [
"tags",
"tags"
],
"applicationSummary": {
"applicationKey": "applicationKey"
},
"accountId": "accountId",
"deletedAt": 5,
"deleted": false,
"name": "name",
"segmentsSummary": {
"linkedSegments": {
"totalCount": 9,
"items": [
{
"environmentId": "environmentId",
"name": "name",
"links": {
"self": {
"href": "href",
"type": "type"
}
},
"key": "key"
},
{
"environmentId": "environmentId",
"name": "name",
"links": {
"self": {
"href": "href",
"type": "type"
}
},
"key": "key"
}
]
},
"count": 7
},
"aiConfigsExpanded": {
"totalCount": 6,
"items": [
{
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
},
{
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
}
]
},
"segmentsExpanded": {
"totalCount": 8,
"items": [
{
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
},
{
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
}
]
},
"_affectsSdkPayload": true,
"projectId": "projectId",
"flagsExpanded": {
"totalCount": 4,
"items": [
{
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
},
{
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
}
]
}
},
"flag": {
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
},
"metric": {
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
},
"segment": {
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
},
"aiConfig": {
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
}
},
"linkedAt": 1,
"environmentKey": "environmentKey",
"resourceType": "flag"
},
{
"environmentId": "environmentId",
"resourceKey": "resourceKey",
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"resourceDetails": {
"view": {
"metricsExpanded": {
"totalCount": 6,
"items": [
{
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
},
{
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
}
]
},
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"maintainer": {
"kind": "kind",
"maintainerMember": {
"firstName": "firstName",
"lastName": "lastName",
"role": "role",
"id": "id",
"email": "email"
},
"id": "id",
"maintainerTeam": {
"name": "name",
"id": "id",
"key": "key"
}
},
"metricsSummary": {
"count": 3
},
"createdAt": 6,
"projectKey": "projectKey",
"_access": {
"allowed": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
],
"denied": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
]
},
"generateSdkKeys": true,
"flagsSummary": {
"count": 5,
"linkedFlags": {
"totalCount": 2,
"items": [
{
"name": "name",
"links": {
"self": {
"href": "href",
"type": "type"
}
},
"key": "key"
},
{
"name": "name",
"links": {
"self": {
"href": "href",
"type": "type"
}
},
"key": "key"
}
]
}
},
"id": "id",
"aiConfigsSummary": {
"count": 2
},
"key": "key",
"updatedAt": 1,
"payloadSummary": {
"sdkKeyCount": 6
},
"resourcesExpanded": {
"totalCount": 7,
"items": {
"flags": {
"totalCount": 5,
"items": [
{
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
},
{
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
}
]
},
"aiConfigs": {
"totalCount": 3,
"items": [
{
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
},
{
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
}
]
},
"metrics": {
"totalCount": 3,
"items": [
{
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
},
{
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
}
]
},
"segments": {
"totalCount": 6,
"items": [
{
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
},
{
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
}
]
}
}
},
"resourceSummary": {
"flagCount": 4,
"metricCount": 1,
"totalCount": 1,
"segmentCount": 7,
"aiConfigCount": 1
},
"version": 0,
"tags": [
"tags",
"tags"
],
"applicationSummary": {
"applicationKey": "applicationKey"
},
"accountId": "accountId",
"deletedAt": 5,
"deleted": false,
"name": "name",
"segmentsSummary": {
"linkedSegments": {
"totalCount": 9,
"items": [
{
"environmentId": "environmentId",
"name": "name",
"links": {
"self": {
"href": "href",
"type": "type"
}
},
"key": "key"
},
{
"environmentId": "environmentId",
"name": "name",
"links": {
"self": {
"href": "href",
"type": "type"
}
},
"key": "key"
}
]
},
"count": 7
},
"aiConfigsExpanded": {
"totalCount": 6,
"items": [
{
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
},
{
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
}
]
},
"segmentsExpanded": {
"totalCount": 8,
"items": [
{
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
},
{
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
}
]
},
"_affectsSdkPayload": true,
"projectId": "projectId",
"flagsExpanded": {
"totalCount": 4,
"items": [
{
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
},
{
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
}
]
}
},
"flag": {
"archived": true,
"temporary": true,
"includeInSnippet": true,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"creationDate": 7,
"_version": 1,
"key": "key",
"maintainer": {
"kind": "member",
"_member": {
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"email": "ariel@acme.com"
},
"_team": {
"_links": {
"key": {
"href": "href",
"type": "type"
}
},
"name": "QA Team",
"customRoleKeys": [
"access-to-test-projects"
],
"key": "team-key-123abc"
},
"key": "key"
},
"tags": [
"tags",
"tags"
]
},
"metric": {
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"kind": "kind",
"description": "description",
"creationDate": 9,
"isActive": true,
"lastSeen": 3,
"eventKey": "eventKey",
"_versionId": "_versionId",
"isNumeric": true,
"name": "name",
"lastModified": 6,
"_id": "_id",
"category": "category",
"key": "key"
},
"segment": {
"generation": 6,
"lastModifiedDate": 9,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"description": "description",
"creationDate": 5,
"version": 9,
"environmentKey": "environmentKey",
"tags": [
"tags",
"tags"
],
"environmentId": "environmentId",
"deleted": true,
"name": "name",
"unbounded": true,
"key": "key"
},
"aiConfig": {
"createdAt": 2,
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"name": "name",
"description": "description",
"version": 1,
"key": "key",
"flagKey": "flagKey",
"tags": [
"tags",
"tags"
],
"updatedAt": 6
}
},
"linkedAt": 1,
"environmentKey": "environmentKey",
"resourceType": "flag"
}
]
},
"failedResources": [
{
"environmentId": "environmentId",
"resourceKey": "resourceKey",
"errorMessage": "errorMessage",
"resourceType": "flag"
},
{
"environmentId": "environmentId",
"resourceKey": "resourceKey",
"errorMessage": "errorMessage",
"resourceType": "flag"
}
],
"successCount": 0,
"failureCount": 6
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}Authorizations
Path Parameters
flags, segments, aiConfigs Body
Resources to link to the view. You can provide explicit keys/IDs, filters, or both.
- Flags: identified by key or filtered by maintainerId, maintainerTeamKey, tags, state, query
- Segments: identified by segment ID or filtered by tags, query, unbounded
- ViewLinkRequestKeys
- ViewLinkRequestSegmentIdentifiers
- ViewLinkRequestFilter
Keys of the resources (flags, segments) to link/unlink
["flag-1", "flag-2"]
Optional filter string to determine which resources should be linked. Resources only need to match either the filter or explicitly-listed keys to be linked (union). Uses the same syntax as list endpoints: flags use comma-separated field:value filters, segments use queryfilter syntax.
Supported filters by resource type:
- flags: query, tags, maintainerId, maintainerTeamKey, type, status, state, staleState, sdkAvailability, targeting, hasExperiment, hasDataExport, evaluated, creationDate, contextKindTargeted, contextKindsEvaluated, filterEnv, segmentTargeted, codeReferences.min, codeReferences.max, excludeSettings, releasePipeline, applicationEvaluated, purpose, guardedRollout, view, key, name, archived, followerId
- segments (queryfilter): query, tags, keys, excludedKeys, unbounded, external, view, type Some filters are only available when the corresponding feature is enabled on your account.
"maintainerId:507f1f77bcf86cd799439011,tags:backend+beta"
Optional comment for the link/unlink operation
Response
Successful response
The number of resources successfully linked.
The number of resources that failed to link.
Show child attributes
Show child attributes
{ "_links": { "next": { "href": "href", "type": "type" }, "last": { "href": "href", "type": "type" }, "prev": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" }, "first": { "href": "href", "type": "type" } }, "totalCount": 5, "items": [ { "environmentId": "environmentId", "resourceKey": "resourceKey", "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "resourceDetails": { "view": { "metricsExpanded": { "totalCount": 6, "items": [ { "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "kind": "kind", "description": "description", "creationDate": 9, "isActive": true, "lastSeen": 3, "eventKey": "eventKey", "_versionId": "_versionId", "isNumeric": true, "name": "name", "lastModified": 6, "_id": "_id", "category": "category", "key": "key" }, { "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "kind": "kind", "description": "description", "creationDate": 9, "isActive": true, "lastSeen": 3, "eventKey": "eventKey", "_versionId": "_versionId", "isNumeric": true, "name": "name", "lastModified": 6, "_id": "_id", "category": "category", "key": "key" } ] }, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "description": "description", "maintainer": { "kind": "kind", "maintainerMember": { "firstName": "firstName", "lastName": "lastName", "role": "role", "id": "id", "email": "email" }, "id": "id", "maintainerTeam": { "name": "name", "id": "id", "key": "key" } }, "metricsSummary": { "count": 3 }, "createdAt": 6, "projectKey": "projectKey", "_access": { "allowed": [ { "reason": { "role_name": "role_name", "notActions": [null, null], "notResources": ["notResources", "notResources"], "effect": "allow", "resources": ["proj/*:env/*;qa_*:/flag/*"], "actions": ["*"] }, "action": "action" }, { "reason": { "role_name": "role_name", "notActions": [null, null], "notResources": ["notResources", "notResources"], "effect": "allow", "resources": ["proj/*:env/*;qa_*:/flag/*"], "actions": ["*"] }, "action": "action" } ], "denied": [ { "reason": { "role_name": "role_name", "notActions": [null, null], "notResources": ["notResources", "notResources"], "effect": "allow", "resources": ["proj/*:env/*;qa_*:/flag/*"], "actions": ["*"] }, "action": "action" }, { "reason": { "role_name": "role_name", "notActions": [null, null], "notResources": ["notResources", "notResources"], "effect": "allow", "resources": ["proj/*:env/*;qa_*:/flag/*"], "actions": ["*"] }, "action": "action" } ] }, "generateSdkKeys": true, "flagsSummary": { "count": 5, "linkedFlags": { "totalCount": 2, "items": [ { "name": "name", "links": { "self": { "href": "href", "type": "type" } }, "key": "key" }, { "name": "name", "links": { "self": { "href": "href", "type": "type" } }, "key": "key" } ] } }, "id": "id", "aiConfigsSummary": { "count": 2 }, "key": "key", "updatedAt": 1, "payloadSummary": { "sdkKeyCount": 6 }, "resourcesExpanded": { "totalCount": 7, "items": { "flags": { "totalCount": 5, "items": [ { "archived": true, "temporary": true, "includeInSnippet": true, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "creationDate": 7, "_version": 1, "key": "key", "maintainer": { "kind": "member", "_member": { "firstName": "Ariel", "lastName": "Flores", "role": "admin", "_links": { "self": { "href": "/api/v2/members/569f183514f4432160000007", "type": "application/json" } }, "_id": "569f183514f4432160000007", "email": "ariel@acme.com" }, "_team": { "_links": { "key": { "href": "href", "type": "type" } }, "name": "QA Team", "customRoleKeys": ["access-to-test-projects"], "key": "team-key-123abc" }, "key": "key" }, "tags": ["tags", "tags"] }, { "archived": true, "temporary": true, "includeInSnippet": true, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "creationDate": 7, "_version": 1, "key": "key", "maintainer": { "kind": "member", "_member": { "firstName": "Ariel", "lastName": "Flores", "role": "admin", "_links": { "self": { "href": "/api/v2/members/569f183514f4432160000007", "type": "application/json" } }, "_id": "569f183514f4432160000007", "email": "ariel@acme.com" }, "_team": { "_links": { "key": { "href": "href", "type": "type" } }, "name": "QA Team", "customRoleKeys": ["access-to-test-projects"], "key": "team-key-123abc" }, "key": "key" }, "tags": ["tags", "tags"] } ] }, "aiConfigs": { "totalCount": 3, "items": [ { "createdAt": 2, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "version": 1, "key": "key", "flagKey": "flagKey", "tags": ["tags", "tags"], "updatedAt": 6 }, { "createdAt": 2, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "version": 1, "key": "key", "flagKey": "flagKey", "tags": ["tags", "tags"], "updatedAt": 6 } ] }, "metrics": { "totalCount": 3, "items": [ { "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "kind": "kind", "description": "description", "creationDate": 9, "isActive": true, "lastSeen": 3, "eventKey": "eventKey", "_versionId": "_versionId", "isNumeric": true, "name": "name", "lastModified": 6, "_id": "_id", "category": "category", "key": "key" }, { "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "kind": "kind", "description": "description", "creationDate": 9, "isActive": true, "lastSeen": 3, "eventKey": "eventKey", "_versionId": "_versionId", "isNumeric": true, "name": "name", "lastModified": 6, "_id": "_id", "category": "category", "key": "key" } ] }, "segments": { "totalCount": 6, "items": [ { "generation": 6, "lastModifiedDate": 9, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "description": "description", "creationDate": 5, "version": 9, "environmentKey": "environmentKey", "tags": ["tags", "tags"], "environmentId": "environmentId", "deleted": true, "name": "name", "unbounded": true, "key": "key" }, { "generation": 6, "lastModifiedDate": 9, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "description": "description", "creationDate": 5, "version": 9, "environmentKey": "environmentKey", "tags": ["tags", "tags"], "environmentId": "environmentId", "deleted": true, "name": "name", "unbounded": true, "key": "key" } ] } } }, "resourceSummary": { "flagCount": 4, "metricCount": 1, "totalCount": 1, "segmentCount": 7, "aiConfigCount": 1 }, "version": 0, "tags": ["tags", "tags"], "applicationSummary": { "applicationKey": "applicationKey" }, "accountId": "accountId", "deletedAt": 5, "deleted": false, "name": "name", "segmentsSummary": { "linkedSegments": { "totalCount": 9, "items": [ { "environmentId": "environmentId", "name": "name", "links": { "self": { "href": "href", "type": "type" } }, "key": "key" }, { "environmentId": "environmentId", "name": "name", "links": { "self": { "href": "href", "type": "type" } }, "key": "key" } ] }, "count": 7 }, "aiConfigsExpanded": { "totalCount": 6, "items": [ { "createdAt": 2, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "version": 1, "key": "key", "flagKey": "flagKey", "tags": ["tags", "tags"], "updatedAt": 6 }, { "createdAt": 2, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "version": 1, "key": "key", "flagKey": "flagKey", "tags": ["tags", "tags"], "updatedAt": 6 } ] }, "segmentsExpanded": { "totalCount": 8, "items": [ { "generation": 6, "lastModifiedDate": 9, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "description": "description", "creationDate": 5, "version": 9, "environmentKey": "environmentKey", "tags": ["tags", "tags"], "environmentId": "environmentId", "deleted": true, "name": "name", "unbounded": true, "key": "key" }, { "generation": 6, "lastModifiedDate": 9, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "description": "description", "creationDate": 5, "version": 9, "environmentKey": "environmentKey", "tags": ["tags", "tags"], "environmentId": "environmentId", "deleted": true, "name": "name", "unbounded": true, "key": "key" } ] }, "_affectsSdkPayload": true, "projectId": "projectId", "flagsExpanded": { "totalCount": 4, "items": [ { "archived": true, "temporary": true, "includeInSnippet": true, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "creationDate": 7, "_version": 1, "key": "key", "maintainer": { "kind": "member", "_member": { "firstName": "Ariel", "lastName": "Flores", "role": "admin", "_links": { "self": { "href": "/api/v2/members/569f183514f4432160000007", "type": "application/json" } }, "_id": "569f183514f4432160000007", "email": "ariel@acme.com" }, "_team": { "_links": { "key": { "href": "href", "type": "type" } }, "name": "QA Team", "customRoleKeys": ["access-to-test-projects"], "key": "team-key-123abc" }, "key": "key" }, "tags": ["tags", "tags"] }, { "archived": true, "temporary": true, "includeInSnippet": true, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "creationDate": 7, "_version": 1, "key": "key", "maintainer": { "kind": "member", "_member": { "firstName": "Ariel", "lastName": "Flores", "role": "admin", "_links": { "self": { "href": "/api/v2/members/569f183514f4432160000007", "type": "application/json" } }, "_id": "569f183514f4432160000007", "email": "ariel@acme.com" }, "_team": { "_links": { "key": { "href": "href", "type": "type" } }, "name": "QA Team", "customRoleKeys": ["access-to-test-projects"], "key": "team-key-123abc" }, "key": "key" }, "tags": ["tags", "tags"] } ] } }, "flag": { "archived": true, "temporary": true, "includeInSnippet": true, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "creationDate": 7, "_version": 1, "key": "key", "maintainer": { "kind": "member", "_member": { "firstName": "Ariel", "lastName": "Flores", "role": "admin", "_links": { "self": { "href": "/api/v2/members/569f183514f4432160000007", "type": "application/json" } }, "_id": "569f183514f4432160000007", "email": "ariel@acme.com" }, "_team": { "_links": { "key": { "href": "href", "type": "type" } }, "name": "QA Team", "customRoleKeys": ["access-to-test-projects"], "key": "team-key-123abc" }, "key": "key" }, "tags": ["tags", "tags"] }, "metric": { "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "kind": "kind", "description": "description", "creationDate": 9, "isActive": true, "lastSeen": 3, "eventKey": "eventKey", "_versionId": "_versionId", "isNumeric": true, "name": "name", "lastModified": 6, "_id": "_id", "category": "category", "key": "key" }, "segment": { "generation": 6, "lastModifiedDate": 9, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "description": "description", "creationDate": 5, "version": 9, "environmentKey": "environmentKey", "tags": ["tags", "tags"], "environmentId": "environmentId", "deleted": true, "name": "name", "unbounded": true, "key": "key" }, "aiConfig": { "createdAt": 2, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "version": 1, "key": "key", "flagKey": "flagKey", "tags": ["tags", "tags"], "updatedAt": 6 } }, "linkedAt": 1, "environmentKey": "environmentKey", "resourceType": "flag" }, { "environmentId": "environmentId", "resourceKey": "resourceKey", "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "resourceDetails": { "view": { "metricsExpanded": { "totalCount": 6, "items": [ { "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "kind": "kind", "description": "description", "creationDate": 9, "isActive": true, "lastSeen": 3, "eventKey": "eventKey", "_versionId": "_versionId", "isNumeric": true, "name": "name", "lastModified": 6, "_id": "_id", "category": "category", "key": "key" }, { "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "kind": "kind", "description": "description", "creationDate": 9, "isActive": true, "lastSeen": 3, "eventKey": "eventKey", "_versionId": "_versionId", "isNumeric": true, "name": "name", "lastModified": 6, "_id": "_id", "category": "category", "key": "key" } ] }, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "description": "description", "maintainer": { "kind": "kind", "maintainerMember": { "firstName": "firstName", "lastName": "lastName", "role": "role", "id": "id", "email": "email" }, "id": "id", "maintainerTeam": { "name": "name", "id": "id", "key": "key" } }, "metricsSummary": { "count": 3 }, "createdAt": 6, "projectKey": "projectKey", "_access": { "allowed": [ { "reason": { "role_name": "role_name", "notActions": [null, null], "notResources": ["notResources", "notResources"], "effect": "allow", "resources": ["proj/*:env/*;qa_*:/flag/*"], "actions": ["*"] }, "action": "action" }, { "reason": { "role_name": "role_name", "notActions": [null, null], "notResources": ["notResources", "notResources"], "effect": "allow", "resources": ["proj/*:env/*;qa_*:/flag/*"], "actions": ["*"] }, "action": "action" } ], "denied": [ { "reason": { "role_name": "role_name", "notActions": [null, null], "notResources": ["notResources", "notResources"], "effect": "allow", "resources": ["proj/*:env/*;qa_*:/flag/*"], "actions": ["*"] }, "action": "action" }, { "reason": { "role_name": "role_name", "notActions": [null, null], "notResources": ["notResources", "notResources"], "effect": "allow", "resources": ["proj/*:env/*;qa_*:/flag/*"], "actions": ["*"] }, "action": "action" } ] }, "generateSdkKeys": true, "flagsSummary": { "count": 5, "linkedFlags": { "totalCount": 2, "items": [ { "name": "name", "links": { "self": { "href": "href", "type": "type" } }, "key": "key" }, { "name": "name", "links": { "self": { "href": "href", "type": "type" } }, "key": "key" } ] } }, "id": "id", "aiConfigsSummary": { "count": 2 }, "key": "key", "updatedAt": 1, "payloadSummary": { "sdkKeyCount": 6 }, "resourcesExpanded": { "totalCount": 7, "items": { "flags": { "totalCount": 5, "items": [ { "archived": true, "temporary": true, "includeInSnippet": true, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "creationDate": 7, "_version": 1, "key": "key", "maintainer": { "kind": "member", "_member": { "firstName": "Ariel", "lastName": "Flores", "role": "admin", "_links": { "self": { "href": "/api/v2/members/569f183514f4432160000007", "type": "application/json" } }, "_id": "569f183514f4432160000007", "email": "ariel@acme.com" }, "_team": { "_links": { "key": { "href": "href", "type": "type" } }, "name": "QA Team", "customRoleKeys": ["access-to-test-projects"], "key": "team-key-123abc" }, "key": "key" }, "tags": ["tags", "tags"] }, { "archived": true, "temporary": true, "includeInSnippet": true, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "creationDate": 7, "_version": 1, "key": "key", "maintainer": { "kind": "member", "_member": { "firstName": "Ariel", "lastName": "Flores", "role": "admin", "_links": { "self": { "href": "/api/v2/members/569f183514f4432160000007", "type": "application/json" } }, "_id": "569f183514f4432160000007", "email": "ariel@acme.com" }, "_team": { "_links": { "key": { "href": "href", "type": "type" } }, "name": "QA Team", "customRoleKeys": ["access-to-test-projects"], "key": "team-key-123abc" }, "key": "key" }, "tags": ["tags", "tags"] } ] }, "aiConfigs": { "totalCount": 3, "items": [ { "createdAt": 2, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "version": 1, "key": "key", "flagKey": "flagKey", "tags": ["tags", "tags"], "updatedAt": 6 }, { "createdAt": 2, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "version": 1, "key": "key", "flagKey": "flagKey", "tags": ["tags", "tags"], "updatedAt": 6 } ] }, "metrics": { "totalCount": 3, "items": [ { "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "kind": "kind", "description": "description", "creationDate": 9, "isActive": true, "lastSeen": 3, "eventKey": "eventKey", "_versionId": "_versionId", "isNumeric": true, "name": "name", "lastModified": 6, "_id": "_id", "category": "category", "key": "key" }, { "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "kind": "kind", "description": "description", "creationDate": 9, "isActive": true, "lastSeen": 3, "eventKey": "eventKey", "_versionId": "_versionId", "isNumeric": true, "name": "name", "lastModified": 6, "_id": "_id", "category": "category", "key": "key" } ] }, "segments": { "totalCount": 6, "items": [ { "generation": 6, "lastModifiedDate": 9, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "description": "description", "creationDate": 5, "version": 9, "environmentKey": "environmentKey", "tags": ["tags", "tags"], "environmentId": "environmentId", "deleted": true, "name": "name", "unbounded": true, "key": "key" }, { "generation": 6, "lastModifiedDate": 9, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "description": "description", "creationDate": 5, "version": 9, "environmentKey": "environmentKey", "tags": ["tags", "tags"], "environmentId": "environmentId", "deleted": true, "name": "name", "unbounded": true, "key": "key" } ] } } }, "resourceSummary": { "flagCount": 4, "metricCount": 1, "totalCount": 1, "segmentCount": 7, "aiConfigCount": 1 }, "version": 0, "tags": ["tags", "tags"], "applicationSummary": { "applicationKey": "applicationKey" }, "accountId": "accountId", "deletedAt": 5, "deleted": false, "name": "name", "segmentsSummary": { "linkedSegments": { "totalCount": 9, "items": [ { "environmentId": "environmentId", "name": "name", "links": { "self": { "href": "href", "type": "type" } }, "key": "key" }, { "environmentId": "environmentId", "name": "name", "links": { "self": { "href": "href", "type": "type" } }, "key": "key" } ] }, "count": 7 }, "aiConfigsExpanded": { "totalCount": 6, "items": [ { "createdAt": 2, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "version": 1, "key": "key", "flagKey": "flagKey", "tags": ["tags", "tags"], "updatedAt": 6 }, { "createdAt": 2, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "version": 1, "key": "key", "flagKey": "flagKey", "tags": ["tags", "tags"], "updatedAt": 6 } ] }, "segmentsExpanded": { "totalCount": 8, "items": [ { "generation": 6, "lastModifiedDate": 9, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "description": "description", "creationDate": 5, "version": 9, "environmentKey": "environmentKey", "tags": ["tags", "tags"], "environmentId": "environmentId", "deleted": true, "name": "name", "unbounded": true, "key": "key" }, { "generation": 6, "lastModifiedDate": 9, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "description": "description", "creationDate": 5, "version": 9, "environmentKey": "environmentKey", "tags": ["tags", "tags"], "environmentId": "environmentId", "deleted": true, "name": "name", "unbounded": true, "key": "key" } ] }, "_affectsSdkPayload": true, "projectId": "projectId", "flagsExpanded": { "totalCount": 4, "items": [ { "archived": true, "temporary": true, "includeInSnippet": true, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "creationDate": 7, "_version": 1, "key": "key", "maintainer": { "kind": "member", "_member": { "firstName": "Ariel", "lastName": "Flores", "role": "admin", "_links": { "self": { "href": "/api/v2/members/569f183514f4432160000007", "type": "application/json" } }, "_id": "569f183514f4432160000007", "email": "ariel@acme.com" }, "_team": { "_links": { "key": { "href": "href", "type": "type" } }, "name": "QA Team", "customRoleKeys": ["access-to-test-projects"], "key": "team-key-123abc" }, "key": "key" }, "tags": ["tags", "tags"] }, { "archived": true, "temporary": true, "includeInSnippet": true, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "creationDate": 7, "_version": 1, "key": "key", "maintainer": { "kind": "member", "_member": { "firstName": "Ariel", "lastName": "Flores", "role": "admin", "_links": { "self": { "href": "/api/v2/members/569f183514f4432160000007", "type": "application/json" } }, "_id": "569f183514f4432160000007", "email": "ariel@acme.com" }, "_team": { "_links": { "key": { "href": "href", "type": "type" } }, "name": "QA Team", "customRoleKeys": ["access-to-test-projects"], "key": "team-key-123abc" }, "key": "key" }, "tags": ["tags", "tags"] } ] } }, "flag": { "archived": true, "temporary": true, "includeInSnippet": true, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "creationDate": 7, "_version": 1, "key": "key", "maintainer": { "kind": "member", "_member": { "firstName": "Ariel", "lastName": "Flores", "role": "admin", "_links": { "self": { "href": "/api/v2/members/569f183514f4432160000007", "type": "application/json" } }, "_id": "569f183514f4432160000007", "email": "ariel@acme.com" }, "_team": { "_links": { "key": { "href": "href", "type": "type" } }, "name": "QA Team", "customRoleKeys": ["access-to-test-projects"], "key": "team-key-123abc" }, "key": "key" }, "tags": ["tags", "tags"] }, "metric": { "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "kind": "kind", "description": "description", "creationDate": 9, "isActive": true, "lastSeen": 3, "eventKey": "eventKey", "_versionId": "_versionId", "isNumeric": true, "name": "name", "lastModified": 6, "_id": "_id", "category": "category", "key": "key" }, "segment": { "generation": 6, "lastModifiedDate": 9, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "description": "description", "creationDate": 5, "version": 9, "environmentKey": "environmentKey", "tags": ["tags", "tags"], "environmentId": "environmentId", "deleted": true, "name": "name", "unbounded": true, "key": "key" }, "aiConfig": { "createdAt": 2, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "name": "name", "description": "description", "version": 1, "key": "key", "flagKey": "flagKey", "tags": ["tags", "tags"], "updatedAt": 6 } }, "linkedAt": 1, "environmentKey": "environmentKey", "resourceType": "flag" } ] }
Details of resources that failed to link.
Show child attributes
Show child attributes