For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign inTry it free
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
  • REST API overview
    • Access Tokens
    • Account Members
    • Account Usage Beta
    • AI Configs
    • Announcements
    • Applications Beta
    • Approvals
    • Approvals Beta
    • Audit Log
    • Code References
    • Contexts
    • Context Settings
    • Custom Roles
    • Data Export Destinations
    • Environments
    • Experiments
    • Feature Flags
    • Feature Flags Beta
    • Flag Import Configurations Beta
    • Flag Links Beta
    • Flag Triggers
    • Follow Flags
    • Holdouts Beta
    • Insights Charts Beta
    • Insights Deployments Beta
    • Insights Flag Events Beta
    • Insights Pull Requests Beta
    • Insights Repositories Beta
    • Insights Scores Beta
    • Integration Audit Log Subscriptions
    • Integration Delivery Configurations Beta
    • Integrations Beta
    • Layers
    • Metrics
    • Metrics Beta
    • OAuth2 Clients
    • Persistent Store Integrations Beta
    • Projects
    • Relay Proxy Configurations
    • Release Pipelines Beta
    • Releases Beta
    • Scheduled Changes
    • Segments
    • Tags
    • Teams
    • Teams Beta
    • Users
    • Users Beta
    • User Settings
    • Views Beta
      • POSTCreate view
      • DELDelete view
      • GETGet linked resources
      • GETGet linked views for a given resource
      • GETGet view
      • POSTLink resource
      • GETList views
      • DELUnlink resource
      • PATCHUpdate view
    • Webhooks
    • Workflows
    • Workflow Templates
    • Other
Sign inTry it free
LogoLogo
REST API overviewViews Beta

Link resource

POST
/api/v2/projects/:projectKey/views/:viewKey/link/:resourceType
POST
/api/v2/projects/:projectKey/views/:viewKey/link/:resourceType
$curl -X POST https://app.launchdarkly.com/api/v2/projects/default/views/my-view/link/flags \
> -H "LD-API-Version: beta" \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "keys": [
> "flag-1",
> "flag-2"
> ],
> "filter": "maintainerId:507f1f77bcf86cd799439011,tags:backend+beta",
> "comment": ""
>}'
1{
2 "successCount": 0,
3 "failureCount": 6,
4 "linkedResources": {
5 "items": [
6 {
7 "_links": {
8 "self": {
9 "href": "href",
10 "type": "type"
11 },
12 "parent": {
13 "href": "href",
14 "type": "type"
15 }
16 },
17 "resourceKey": "resourceKey",
18 "resourceType": "flag",
19 "linkedAt": 1,
20 "environmentId": "environmentId",
21 "environmentKey": "environmentKey",
22 "resourceDetails": {
23 "view": {
24 "id": "id",
25 "accountId": "accountId",
26 "projectId": "projectId",
27 "projectKey": "projectKey",
28 "key": "key",
29 "name": "name",
30 "description": "description",
31 "_affectsSdkPayload": true,
32 "version": 0,
33 "tags": [
34 "tags",
35 "tags"
36 ],
37 "createdAt": 6,
38 "updatedAt": 1,
39 "archived": false,
40 "deleted": false,
41 "_access": {
42 "allowed": [
43 {
44 "action": "action",
45 "reason": {
46 "effect": "allow",
47 "resources": [
48 "proj/*:env/*;qa_*:/flag/*"
49 ],
50 "notResources": [
51 "notResources",
52 "notResources"
53 ],
54 "actions": [
55 "*"
56 ],
57 "notActions": [
58 "string",
59 "string"
60 ],
61 "role_name": "role_name"
62 }
63 },
64 {
65 "action": "action",
66 "reason": {
67 "effect": "allow",
68 "resources": [
69 "proj/*:env/*;qa_*:/flag/*"
70 ],
71 "notResources": [
72 "notResources",
73 "notResources"
74 ],
75 "actions": [
76 "*"
77 ],
78 "notActions": [
79 "string",
80 "string"
81 ],
82 "role_name": "role_name"
83 }
84 }
85 ],
86 "denied": [
87 {
88 "action": "action",
89 "reason": {
90 "effect": "allow",
91 "resources": [
92 "proj/*:env/*;qa_*:/flag/*"
93 ],
94 "notResources": [
95 "notResources",
96 "notResources"
97 ],
98 "actions": [
99 "*"
100 ],
101 "notActions": [
102 "string",
103 "string"
104 ],
105 "role_name": "role_name"
106 }
107 },
108 {
109 "action": "action",
110 "reason": {
111 "effect": "allow",
112 "resources": [
113 "proj/*:env/*;qa_*:/flag/*"
114 ],
115 "notResources": [
116 "notResources",
117 "notResources"
118 ],
119 "actions": [
120 "*"
121 ],
122 "notActions": [
123 "string",
124 "string"
125 ],
126 "role_name": "role_name"
127 }
128 }
129 ]
130 },
131 "_links": {
132 "self": {
133 "href": "href",
134 "type": "type"
135 },
136 "parent": {
137 "href": "href",
138 "type": "type"
139 }
140 },
141 "archivedAt": 5,
142 "deletedAt": 5,
143 "maintainer": {
144 "id": "id",
145 "kind": "kind",
146 "maintainerMember": {
147 "id": "id",
148 "email": "email",
149 "role": "role",
150 "firstName": "firstName",
151 "lastName": "lastName"
152 },
153 "maintainerTeam": {
154 "id": "id",
155 "key": "key",
156 "name": "name"
157 }
158 },
159 "flagsSummary": {
160 "count": 2,
161 "linkedFlags": {
162 "items": [
163 {
164 "key": "key",
165 "name": "name",
166 "links": {
167 "self": {
168 "href": "href",
169 "type": "type"
170 }
171 }
172 },
173 {
174 "key": "key",
175 "name": "name",
176 "links": {
177 "self": {
178 "href": "href",
179 "type": "type"
180 }
181 }
182 }
183 ],
184 "totalCount": 7
185 }
186 },
187 "segmentsSummary": {
188 "count": 9,
189 "linkedSegments": {
190 "items": [
191 {
192 "key": "key",
193 "name": "name",
194 "environmentId": "environmentId",
195 "links": {
196 "self": {
197 "href": "href",
198 "type": "type"
199 }
200 }
201 },
202 {
203 "key": "key",
204 "name": "name",
205 "environmentId": "environmentId",
206 "links": {
207 "self": {
208 "href": "href",
209 "type": "type"
210 }
211 }
212 }
213 ],
214 "totalCount": 3
215 }
216 },
217 "metricsSummary": {
218 "count": 2
219 },
220 "aiConfigsSummary": {
221 "count": 4
222 },
223 "resourceSummary": {
224 "flagCount": 7,
225 "totalCount": 6,
226 "segmentCount": 1,
227 "metricCount": 1,
228 "aiConfigCount": 1
229 },
230 "flagsExpanded": {
231 "items": [
232 {
233 "key": "key",
234 "name": "name",
235 "description": "description",
236 "creationDate": 7,
237 "_version": 1,
238 "archived": true,
239 "tags": [
240 "tags",
241 "tags"
242 ],
243 "temporary": true,
244 "includeInSnippet": true,
245 "maintainer": {
246 "key": "key",
247 "kind": "member",
248 "_member": {
249 "_links": {
250 "self": {
251 "href": "/api/v2/members/569f183514f4432160000007",
252 "type": "application/json"
253 }
254 },
255 "_id": "569f183514f4432160000007",
256 "role": "admin",
257 "email": "ariel@acme.com",
258 "firstName": "Ariel",
259 "lastName": "Flores"
260 },
261 "_team": {
262 "customRoleKeys": [
263 "access-to-test-projects"
264 ],
265 "key": "team-key-123abc",
266 "name": "QA Team",
267 "_links": {
268 "key": {
269 "href": "href",
270 "type": "type"
271 }
272 }
273 }
274 },
275 "_links": {
276 "self": {
277 "href": "href",
278 "type": "type"
279 },
280 "parent": {
281 "href": "href",
282 "type": "type"
283 }
284 }
285 },
286 {
287 "key": "key",
288 "name": "name",
289 "description": "description",
290 "creationDate": 7,
291 "_version": 1,
292 "archived": true,
293 "tags": [
294 "tags",
295 "tags"
296 ],
297 "temporary": true,
298 "includeInSnippet": true,
299 "maintainer": {
300 "key": "key",
301 "kind": "member",
302 "_member": {
303 "_links": {
304 "self": {
305 "href": "/api/v2/members/569f183514f4432160000007",
306 "type": "application/json"
307 }
308 },
309 "_id": "569f183514f4432160000007",
310 "role": "admin",
311 "email": "ariel@acme.com",
312 "firstName": "Ariel",
313 "lastName": "Flores"
314 },
315 "_team": {
316 "customRoleKeys": [
317 "access-to-test-projects"
318 ],
319 "key": "team-key-123abc",
320 "name": "QA Team",
321 "_links": {
322 "key": {
323 "href": "href",
324 "type": "type"
325 }
326 }
327 }
328 },
329 "_links": {
330 "self": {
331 "href": "href",
332 "type": "type"
333 },
334 "parent": {
335 "href": "href",
336 "type": "type"
337 }
338 }
339 }
340 ],
341 "totalCount": 4
342 },
343 "segmentsExpanded": {
344 "items": [
345 {
346 "key": "key",
347 "name": "name",
348 "environmentId": "environmentId",
349 "environmentKey": "environmentKey",
350 "description": "description",
351 "creationDate": 5,
352 "lastModifiedDate": 9,
353 "deleted": true,
354 "tags": [
355 "tags",
356 "tags"
357 ],
358 "unbounded": true,
359 "version": 9,
360 "generation": 6,
361 "_links": {
362 "self": {
363 "href": "href",
364 "type": "type"
365 },
366 "parent": {
367 "href": "href",
368 "type": "type"
369 }
370 }
371 },
372 {
373 "key": "key",
374 "name": "name",
375 "environmentId": "environmentId",
376 "environmentKey": "environmentKey",
377 "description": "description",
378 "creationDate": 5,
379 "lastModifiedDate": 9,
380 "deleted": true,
381 "tags": [
382 "tags",
383 "tags"
384 ],
385 "unbounded": true,
386 "version": 9,
387 "generation": 6,
388 "_links": {
389 "self": {
390 "href": "href",
391 "type": "type"
392 },
393 "parent": {
394 "href": "href",
395 "type": "type"
396 }
397 }
398 }
399 ],
400 "totalCount": 8
401 },
402 "metricsExpanded": {
403 "items": [
404 {
405 "key": "key",
406 "name": "name",
407 "creationDate": 9,
408 "lastModified": 6,
409 "isActive": true,
410 "eventKey": "eventKey",
411 "_id": "_id",
412 "_versionId": "_versionId",
413 "kind": "kind",
414 "category": "category",
415 "description": "description",
416 "isNumeric": true,
417 "lastSeen": 3,
418 "_links": {
419 "self": {
420 "href": "href",
421 "type": "type"
422 },
423 "parent": {
424 "href": "href",
425 "type": "type"
426 }
427 }
428 },
429 {
430 "key": "key",
431 "name": "name",
432 "creationDate": 9,
433 "lastModified": 6,
434 "isActive": true,
435 "eventKey": "eventKey",
436 "_id": "_id",
437 "_versionId": "_versionId",
438 "kind": "kind",
439 "category": "category",
440 "description": "description",
441 "isNumeric": true,
442 "lastSeen": 3,
443 "_links": {
444 "self": {
445 "href": "href",
446 "type": "type"
447 },
448 "parent": {
449 "href": "href",
450 "type": "type"
451 }
452 }
453 }
454 ],
455 "totalCount": 6
456 },
457 "aiConfigsExpanded": {
458 "items": [
459 {
460 "key": "key",
461 "name": "name",
462 "tags": [
463 "tags",
464 "tags"
465 ],
466 "description": "description",
467 "version": 1,
468 "createdAt": 2,
469 "updatedAt": 6,
470 "flagKey": "flagKey",
471 "_links": {
472 "self": {
473 "href": "href",
474 "type": "type"
475 },
476 "parent": {
477 "href": "href",
478 "type": "type"
479 }
480 }
481 },
482 {
483 "key": "key",
484 "name": "name",
485 "tags": [
486 "tags",
487 "tags"
488 ],
489 "description": "description",
490 "version": 1,
491 "createdAt": 2,
492 "updatedAt": 6,
493 "flagKey": "flagKey",
494 "_links": {
495 "self": {
496 "href": "href",
497 "type": "type"
498 },
499 "parent": {
500 "href": "href",
501 "type": "type"
502 }
503 }
504 }
505 ],
506 "totalCount": 6
507 },
508 "resourcesExpanded": {
509 "items": {
510 "flags": {
511 "items": [
512 {
513 "key": "key",
514 "name": "name",
515 "description": "description",
516 "creationDate": 7,
517 "_version": 1,
518 "archived": true,
519 "tags": [
520 "tags",
521 "tags"
522 ],
523 "temporary": true,
524 "includeInSnippet": true,
525 "maintainer": {
526 "key": "key",
527 "kind": "member",
528 "_member": {
529 "_links": {
530 "self": {
531 "href": "/api/v2/members/569f183514f4432160000007",
532 "type": "application/json"
533 }
534 },
535 "_id": "569f183514f4432160000007",
536 "role": "admin",
537 "email": "ariel@acme.com",
538 "firstName": "Ariel",
539 "lastName": "Flores"
540 },
541 "_team": {
542 "customRoleKeys": [
543 "access-to-test-projects"
544 ],
545 "key": "team-key-123abc",
546 "name": "QA Team",
547 "_links": {
548 "key": {
549 "href": "href",
550 "type": "type"
551 }
552 }
553 }
554 },
555 "_links": {
556 "self": {
557 "href": "href",
558 "type": "type"
559 },
560 "parent": {
561 "href": "href",
562 "type": "type"
563 }
564 }
565 },
566 {
567 "key": "key",
568 "name": "name",
569 "description": "description",
570 "creationDate": 7,
571 "_version": 1,
572 "archived": true,
573 "tags": [
574 "tags",
575 "tags"
576 ],
577 "temporary": true,
578 "includeInSnippet": true,
579 "maintainer": {
580 "key": "key",
581 "kind": "member",
582 "_member": {
583 "_links": {
584 "self": {
585 "href": "/api/v2/members/569f183514f4432160000007",
586 "type": "application/json"
587 }
588 },
589 "_id": "569f183514f4432160000007",
590 "role": "admin",
591 "email": "ariel@acme.com",
592 "firstName": "Ariel",
593 "lastName": "Flores"
594 },
595 "_team": {
596 "customRoleKeys": [
597 "access-to-test-projects"
598 ],
599 "key": "team-key-123abc",
600 "name": "QA Team",
601 "_links": {
602 "key": {
603 "href": "href",
604 "type": "type"
605 }
606 }
607 }
608 },
609 "_links": {
610 "self": {
611 "href": "href",
612 "type": "type"
613 },
614 "parent": {
615 "href": "href",
616 "type": "type"
617 }
618 }
619 }
620 ],
621 "totalCount": 5
622 },
623 "segments": {
624 "items": [
625 {
626 "key": "key",
627 "name": "name",
628 "environmentId": "environmentId",
629 "environmentKey": "environmentKey",
630 "description": "description",
631 "creationDate": 5,
632 "lastModifiedDate": 9,
633 "deleted": true,
634 "tags": [
635 "tags",
636 "tags"
637 ],
638 "unbounded": true,
639 "version": 9,
640 "generation": 6,
641 "_links": {
642 "self": {
643 "href": "href",
644 "type": "type"
645 },
646 "parent": {
647 "href": "href",
648 "type": "type"
649 }
650 }
651 },
652 {
653 "key": "key",
654 "name": "name",
655 "environmentId": "environmentId",
656 "environmentKey": "environmentKey",
657 "description": "description",
658 "creationDate": 5,
659 "lastModifiedDate": 9,
660 "deleted": true,
661 "tags": [
662 "tags",
663 "tags"
664 ],
665 "unbounded": true,
666 "version": 9,
667 "generation": 6,
668 "_links": {
669 "self": {
670 "href": "href",
671 "type": "type"
672 },
673 "parent": {
674 "href": "href",
675 "type": "type"
676 }
677 }
678 }
679 ],
680 "totalCount": 6
681 },
682 "aiConfigs": {
683 "totalCount": 3,
684 "items": [
685 {
686 "createdAt": 2,
687 "_links": {
688 "parent": {
689 "href": "href",
690 "type": "type"
691 },
692 "self": {
693 "href": "href",
694 "type": "type"
695 }
696 },
697 "name": "name",
698 "description": "description",
699 "version": 1,
700 "key": "key",
701 "flagKey": "flagKey",
702 "tags": [
703 "tags",
704 "tags"
705 ],
706 "updatedAt": 6
707 },
708 {
709 "createdAt": 2,
710 "_links": {
711 "parent": {
712 "href": "href",
713 "type": "type"
714 },
715 "self": {
716 "href": "href",
717 "type": "type"
718 }
719 },
720 "name": "name",
721 "description": "description",
722 "version": 1,
723 "key": "key",
724 "flagKey": "flagKey",
725 "tags": [
726 "tags",
727 "tags"
728 ],
729 "updatedAt": 6
730 }
731 ]
732 },
733 "metrics": {
734 "totalCount": 3,
735 "items": [
736 {
737 "_links": {
738 "parent": {
739 "href": "href",
740 "type": "type"
741 },
742 "self": {
743 "href": "href",
744 "type": "type"
745 }
746 },
747 "kind": "kind",
748 "description": "description",
749 "creationDate": 9,
750 "isActive": true,
751 "lastSeen": 3,
752 "eventKey": "eventKey",
753 "_versionId": "_versionId",
754 "isNumeric": true,
755 "name": "name",
756 "lastModified": 6,
757 "_id": "_id",
758 "category": "category",
759 "key": "key"
760 },
761 {
762 "_links": {
763 "parent": {
764 "href": "href",
765 "type": "type"
766 },
767 "self": {
768 "href": "href",
769 "type": "type"
770 }
771 },
772 "kind": "kind",
773 "description": "description",
774 "creationDate": 9,
775 "isActive": true,
776 "lastSeen": 3,
777 "eventKey": "eventKey",
778 "_versionId": "_versionId",
779 "isNumeric": true,
780 "name": "name",
781 "lastModified": 6,
782 "_id": "_id",
783 "category": "category",
784 "key": "key"
785 }
786 ]
787 }
788 },
789 "totalCount": 7
790 },
791 "generateSdkKeys": true
792 },
793 "flag": {
794 "key": "key",
795 "name": "name",
796 "description": "description",
797 "creationDate": 7,
798 "_version": 1,
799 "archived": true,
800 "tags": [
801 "tags",
802 "tags"
803 ],
804 "temporary": true,
805 "includeInSnippet": true,
806 "maintainer": {
807 "key": "key",
808 "kind": "member",
809 "_member": {
810 "_links": {
811 "self": {
812 "href": "/api/v2/members/569f183514f4432160000007",
813 "type": "application/json"
814 }
815 },
816 "_id": "569f183514f4432160000007",
817 "role": "admin",
818 "email": "ariel@acme.com",
819 "firstName": "Ariel",
820 "lastName": "Flores"
821 },
822 "_team": {
823 "customRoleKeys": [
824 "access-to-test-projects"
825 ],
826 "key": "team-key-123abc",
827 "name": "QA Team",
828 "_links": {
829 "key": {
830 "href": "href",
831 "type": "type"
832 }
833 }
834 }
835 },
836 "_links": {
837 "self": {
838 "href": "href",
839 "type": "type"
840 },
841 "parent": {
842 "href": "href",
843 "type": "type"
844 }
845 }
846 },
847 "segment": {
848 "key": "key",
849 "name": "name",
850 "environmentId": "environmentId",
851 "environmentKey": "environmentKey",
852 "description": "description",
853 "creationDate": 5,
854 "lastModifiedDate": 9,
855 "deleted": true,
856 "tags": [
857 "tags",
858 "tags"
859 ],
860 "unbounded": true,
861 "version": 9,
862 "generation": 6,
863 "_links": {
864 "self": {
865 "href": "href",
866 "type": "type"
867 },
868 "parent": {
869 "href": "href",
870 "type": "type"
871 }
872 }
873 },
874 "aiConfig": {
875 "key": "key",
876 "name": "name",
877 "tags": [
878 "tags",
879 "tags"
880 ],
881 "description": "description",
882 "version": 1,
883 "createdAt": 2,
884 "updatedAt": 6,
885 "flagKey": "flagKey",
886 "_links": {
887 "self": {
888 "href": "href",
889 "type": "type"
890 },
891 "parent": {
892 "href": "href",
893 "type": "type"
894 }
895 }
896 },
897 "metric": {
898 "key": "key",
899 "name": "name",
900 "creationDate": 9,
901 "lastModified": 6,
902 "isActive": true,
903 "eventKey": "eventKey",
904 "_id": "_id",
905 "_versionId": "_versionId",
906 "kind": "kind",
907 "category": "category",
908 "description": "description",
909 "isNumeric": true,
910 "lastSeen": 3,
911 "_links": {
912 "self": {
913 "href": "href",
914 "type": "type"
915 },
916 "parent": {
917 "href": "href",
918 "type": "type"
919 }
920 }
921 }
922 }
923 },
924 {
925 "_links": {
926 "self": {
927 "href": "href",
928 "type": "type"
929 },
930 "parent": {
931 "href": "href",
932 "type": "type"
933 }
934 },
935 "resourceKey": "resourceKey",
936 "resourceType": "flag",
937 "linkedAt": 1,
938 "environmentId": "environmentId",
939 "environmentKey": "environmentKey",
940 "resourceDetails": {
941 "view": {
942 "id": "id",
943 "accountId": "accountId",
944 "projectId": "projectId",
945 "projectKey": "projectKey",
946 "key": "key",
947 "name": "name",
948 "description": "description",
949 "_affectsSdkPayload": true,
950 "version": 0,
951 "tags": [
952 "tags",
953 "tags"
954 ],
955 "createdAt": 6,
956 "updatedAt": 1,
957 "archived": false,
958 "deleted": false,
959 "_access": {
960 "allowed": [
961 {
962 "action": "action",
963 "reason": {
964 "effect": "allow",
965 "resources": [
966 "proj/*:env/*;qa_*:/flag/*"
967 ],
968 "notResources": [
969 "notResources",
970 "notResources"
971 ],
972 "actions": [
973 "*"
974 ],
975 "notActions": [
976 "string",
977 "string"
978 ],
979 "role_name": "role_name"
980 }
981 },
982 {
983 "action": "action",
984 "reason": {
985 "effect": "allow",
986 "resources": [
987 "proj/*:env/*;qa_*:/flag/*"
988 ],
989 "notResources": [
990 "notResources",
991 "notResources"
992 ],
993 "actions": [
994 "*"
995 ],
996 "notActions": [
997 "string",
998 "string"
999 ],
1000 "role_name": "role_name"
1001 }
1002 }
1003 ],
1004 "denied": [
1005 {
1006 "action": "action",
1007 "reason": {
1008 "effect": "allow",
1009 "resources": [
1010 "proj/*:env/*;qa_*:/flag/*"
1011 ],
1012 "notResources": [
1013 "notResources",
1014 "notResources"
1015 ],
1016 "actions": [
1017 "*"
1018 ],
1019 "notActions": [
1020 "string",
1021 "string"
1022 ],
1023 "role_name": "role_name"
1024 }
1025 },
1026 {
1027 "action": "action",
1028 "reason": {
1029 "effect": "allow",
1030 "resources": [
1031 "proj/*:env/*;qa_*:/flag/*"
1032 ],
1033 "notResources": [
1034 "notResources",
1035 "notResources"
1036 ],
1037 "actions": [
1038 "*"
1039 ],
1040 "notActions": [
1041 "string",
1042 "string"
1043 ],
1044 "role_name": "role_name"
1045 }
1046 }
1047 ]
1048 },
1049 "_links": {
1050 "self": {
1051 "href": "href",
1052 "type": "type"
1053 },
1054 "parent": {
1055 "href": "href",
1056 "type": "type"
1057 }
1058 },
1059 "archivedAt": 5,
1060 "deletedAt": 5,
1061 "maintainer": {
1062 "id": "id",
1063 "kind": "kind",
1064 "maintainerMember": {
1065 "id": "id",
1066 "email": "email",
1067 "role": "role",
1068 "firstName": "firstName",
1069 "lastName": "lastName"
1070 },
1071 "maintainerTeam": {
1072 "id": "id",
1073 "key": "key",
1074 "name": "name"
1075 }
1076 },
1077 "flagsSummary": {
1078 "count": 2,
1079 "linkedFlags": {
1080 "items": [
1081 {
1082 "key": "key",
1083 "name": "name",
1084 "links": {
1085 "self": {
1086 "href": "href",
1087 "type": "type"
1088 }
1089 }
1090 },
1091 {
1092 "key": "key",
1093 "name": "name",
1094 "links": {
1095 "self": {
1096 "href": "href",
1097 "type": "type"
1098 }
1099 }
1100 }
1101 ],
1102 "totalCount": 7
1103 }
1104 },
1105 "segmentsSummary": {
1106 "count": 9,
1107 "linkedSegments": {
1108 "items": [
1109 {
1110 "key": "key",
1111 "name": "name",
1112 "environmentId": "environmentId",
1113 "links": {
1114 "self": {
1115 "href": "href",
1116 "type": "type"
1117 }
1118 }
1119 },
1120 {
1121 "key": "key",
1122 "name": "name",
1123 "environmentId": "environmentId",
1124 "links": {
1125 "self": {
1126 "href": "href",
1127 "type": "type"
1128 }
1129 }
1130 }
1131 ],
1132 "totalCount": 3
1133 }
1134 },
1135 "metricsSummary": {
1136 "count": 2
1137 },
1138 "aiConfigsSummary": {
1139 "count": 4
1140 },
1141 "resourceSummary": {
1142 "flagCount": 7,
1143 "totalCount": 6,
1144 "segmentCount": 1,
1145 "metricCount": 1,
1146 "aiConfigCount": 1
1147 },
1148 "flagsExpanded": {
1149 "items": [
1150 {
1151 "key": "key",
1152 "name": "name",
1153 "description": "description",
1154 "creationDate": 7,
1155 "_version": 1,
1156 "archived": true,
1157 "tags": [
1158 "tags",
1159 "tags"
1160 ],
1161 "temporary": true,
1162 "includeInSnippet": true,
1163 "maintainer": {
1164 "key": "key",
1165 "kind": "member",
1166 "_member": {
1167 "_links": {
1168 "self": {
1169 "href": "/api/v2/members/569f183514f4432160000007",
1170 "type": "application/json"
1171 }
1172 },
1173 "_id": "569f183514f4432160000007",
1174 "role": "admin",
1175 "email": "ariel@acme.com",
1176 "firstName": "Ariel",
1177 "lastName": "Flores"
1178 },
1179 "_team": {
1180 "customRoleKeys": [
1181 "access-to-test-projects"
1182 ],
1183 "key": "team-key-123abc",
1184 "name": "QA Team",
1185 "_links": {
1186 "key": {
1187 "href": "href",
1188 "type": "type"
1189 }
1190 }
1191 }
1192 },
1193 "_links": {
1194 "self": {
1195 "href": "href",
1196 "type": "type"
1197 },
1198 "parent": {
1199 "href": "href",
1200 "type": "type"
1201 }
1202 }
1203 },
1204 {
1205 "key": "key",
1206 "name": "name",
1207 "description": "description",
1208 "creationDate": 7,
1209 "_version": 1,
1210 "archived": true,
1211 "tags": [
1212 "tags",
1213 "tags"
1214 ],
1215 "temporary": true,
1216 "includeInSnippet": true,
1217 "maintainer": {
1218 "key": "key",
1219 "kind": "member",
1220 "_member": {
1221 "_links": {
1222 "self": {
1223 "href": "/api/v2/members/569f183514f4432160000007",
1224 "type": "application/json"
1225 }
1226 },
1227 "_id": "569f183514f4432160000007",
1228 "role": "admin",
1229 "email": "ariel@acme.com",
1230 "firstName": "Ariel",
1231 "lastName": "Flores"
1232 },
1233 "_team": {
1234 "customRoleKeys": [
1235 "access-to-test-projects"
1236 ],
1237 "key": "team-key-123abc",
1238 "name": "QA Team",
1239 "_links": {
1240 "key": {
1241 "href": "href",
1242 "type": "type"
1243 }
1244 }
1245 }
1246 },
1247 "_links": {
1248 "self": {
1249 "href": "href",
1250 "type": "type"
1251 },
1252 "parent": {
1253 "href": "href",
1254 "type": "type"
1255 }
1256 }
1257 }
1258 ],
1259 "totalCount": 4
1260 },
1261 "segmentsExpanded": {
1262 "items": [
1263 {
1264 "key": "key",
1265 "name": "name",
1266 "environmentId": "environmentId",
1267 "environmentKey": "environmentKey",
1268 "description": "description",
1269 "creationDate": 5,
1270 "lastModifiedDate": 9,
1271 "deleted": true,
1272 "tags": [
1273 "tags",
1274 "tags"
1275 ],
1276 "unbounded": true,
1277 "version": 9,
1278 "generation": 6,
1279 "_links": {
1280 "self": {
1281 "href": "href",
1282 "type": "type"
1283 },
1284 "parent": {
1285 "href": "href",
1286 "type": "type"
1287 }
1288 }
1289 },
1290 {
1291 "key": "key",
1292 "name": "name",
1293 "environmentId": "environmentId",
1294 "environmentKey": "environmentKey",
1295 "description": "description",
1296 "creationDate": 5,
1297 "lastModifiedDate": 9,
1298 "deleted": true,
1299 "tags": [
1300 "tags",
1301 "tags"
1302 ],
1303 "unbounded": true,
1304 "version": 9,
1305 "generation": 6,
1306 "_links": {
1307 "self": {
1308 "href": "href",
1309 "type": "type"
1310 },
1311 "parent": {
1312 "href": "href",
1313 "type": "type"
1314 }
1315 }
1316 }
1317 ],
1318 "totalCount": 8
1319 },
1320 "metricsExpanded": {
1321 "items": [
1322 {
1323 "key": "key",
1324 "name": "name",
1325 "creationDate": 9,
1326 "lastModified": 6,
1327 "isActive": true,
1328 "eventKey": "eventKey",
1329 "_id": "_id",
1330 "_versionId": "_versionId",
1331 "kind": "kind",
1332 "category": "category",
1333 "description": "description",
1334 "isNumeric": true,
1335 "lastSeen": 3,
1336 "_links": {
1337 "self": {
1338 "href": "href",
1339 "type": "type"
1340 },
1341 "parent": {
1342 "href": "href",
1343 "type": "type"
1344 }
1345 }
1346 },
1347 {
1348 "key": "key",
1349 "name": "name",
1350 "creationDate": 9,
1351 "lastModified": 6,
1352 "isActive": true,
1353 "eventKey": "eventKey",
1354 "_id": "_id",
1355 "_versionId": "_versionId",
1356 "kind": "kind",
1357 "category": "category",
1358 "description": "description",
1359 "isNumeric": true,
1360 "lastSeen": 3,
1361 "_links": {
1362 "self": {
1363 "href": "href",
1364 "type": "type"
1365 },
1366 "parent": {
1367 "href": "href",
1368 "type": "type"
1369 }
1370 }
1371 }
1372 ],
1373 "totalCount": 6
1374 },
1375 "aiConfigsExpanded": {
1376 "items": [
1377 {
1378 "key": "key",
1379 "name": "name",
1380 "tags": [
1381 "tags",
1382 "tags"
1383 ],
1384 "description": "description",
1385 "version": 1,
1386 "createdAt": 2,
1387 "updatedAt": 6,
1388 "flagKey": "flagKey",
1389 "_links": {
1390 "self": {
1391 "href": "href",
1392 "type": "type"
1393 },
1394 "parent": {
1395 "href": "href",
1396 "type": "type"
1397 }
1398 }
1399 },
1400 {
1401 "key": "key",
1402 "name": "name",
1403 "tags": [
1404 "tags",
1405 "tags"
1406 ],
1407 "description": "description",
1408 "version": 1,
1409 "createdAt": 2,
1410 "updatedAt": 6,
1411 "flagKey": "flagKey",
1412 "_links": {
1413 "self": {
1414 "href": "href",
1415 "type": "type"
1416 },
1417 "parent": {
1418 "href": "href",
1419 "type": "type"
1420 }
1421 }
1422 }
1423 ],
1424 "totalCount": 6
1425 },
1426 "resourcesExpanded": {
1427 "items": {
1428 "flags": {
1429 "items": [
1430 {
1431 "key": "key",
1432 "name": "name",
1433 "description": "description",
1434 "creationDate": 7,
1435 "_version": 1,
1436 "archived": true,
1437 "tags": [
1438 "tags",
1439 "tags"
1440 ],
1441 "temporary": true,
1442 "includeInSnippet": true,
1443 "maintainer": {
1444 "key": "key",
1445 "kind": "member",
1446 "_member": {
1447 "_links": {
1448 "self": {
1449 "href": "/api/v2/members/569f183514f4432160000007",
1450 "type": "application/json"
1451 }
1452 },
1453 "_id": "569f183514f4432160000007",
1454 "role": "admin",
1455 "email": "ariel@acme.com",
1456 "firstName": "Ariel",
1457 "lastName": "Flores"
1458 },
1459 "_team": {
1460 "customRoleKeys": [
1461 "access-to-test-projects"
1462 ],
1463 "key": "team-key-123abc",
1464 "name": "QA Team",
1465 "_links": {
1466 "key": {
1467 "href": "href",
1468 "type": "type"
1469 }
1470 }
1471 }
1472 },
1473 "_links": {
1474 "self": {
1475 "href": "href",
1476 "type": "type"
1477 },
1478 "parent": {
1479 "href": "href",
1480 "type": "type"
1481 }
1482 }
1483 },
1484 {
1485 "key": "key",
1486 "name": "name",
1487 "description": "description",
1488 "creationDate": 7,
1489 "_version": 1,
1490 "archived": true,
1491 "tags": [
1492 "tags",
1493 "tags"
1494 ],
1495 "temporary": true,
1496 "includeInSnippet": true,
1497 "maintainer": {
1498 "key": "key",
1499 "kind": "member",
1500 "_member": {
1501 "_links": {
1502 "self": {
1503 "href": "/api/v2/members/569f183514f4432160000007",
1504 "type": "application/json"
1505 }
1506 },
1507 "_id": "569f183514f4432160000007",
1508 "role": "admin",
1509 "email": "ariel@acme.com",
1510 "firstName": "Ariel",
1511 "lastName": "Flores"
1512 },
1513 "_team": {
1514 "customRoleKeys": [
1515 "access-to-test-projects"
1516 ],
1517 "key": "team-key-123abc",
1518 "name": "QA Team",
1519 "_links": {
1520 "key": {
1521 "href": "href",
1522 "type": "type"
1523 }
1524 }
1525 }
1526 },
1527 "_links": {
1528 "self": {
1529 "href": "href",
1530 "type": "type"
1531 },
1532 "parent": {
1533 "href": "href",
1534 "type": "type"
1535 }
1536 }
1537 }
1538 ],
1539 "totalCount": 5
1540 },
1541 "segments": {
1542 "items": [
1543 {
1544 "key": "key",
1545 "name": "name",
1546 "environmentId": "environmentId",
1547 "environmentKey": "environmentKey",
1548 "description": "description",
1549 "creationDate": 5,
1550 "lastModifiedDate": 9,
1551 "deleted": true,
1552 "tags": [
1553 "tags",
1554 "tags"
1555 ],
1556 "unbounded": true,
1557 "version": 9,
1558 "generation": 6,
1559 "_links": {
1560 "self": {
1561 "href": "href",
1562 "type": "type"
1563 },
1564 "parent": {
1565 "href": "href",
1566 "type": "type"
1567 }
1568 }
1569 },
1570 {
1571 "key": "key",
1572 "name": "name",
1573 "environmentId": "environmentId",
1574 "environmentKey": "environmentKey",
1575 "description": "description",
1576 "creationDate": 5,
1577 "lastModifiedDate": 9,
1578 "deleted": true,
1579 "tags": [
1580 "tags",
1581 "tags"
1582 ],
1583 "unbounded": true,
1584 "version": 9,
1585 "generation": 6,
1586 "_links": {
1587 "self": {
1588 "href": "href",
1589 "type": "type"
1590 },
1591 "parent": {
1592 "href": "href",
1593 "type": "type"
1594 }
1595 }
1596 }
1597 ],
1598 "totalCount": 6
1599 },
1600 "aiConfigs": {
1601 "totalCount": 3,
1602 "items": [
1603 {
1604 "createdAt": 2,
1605 "_links": {
1606 "parent": {
1607 "href": "href",
1608 "type": "type"
1609 },
1610 "self": {
1611 "href": "href",
1612 "type": "type"
1613 }
1614 },
1615 "name": "name",
1616 "description": "description",
1617 "version": 1,
1618 "key": "key",
1619 "flagKey": "flagKey",
1620 "tags": [
1621 "tags",
1622 "tags"
1623 ],
1624 "updatedAt": 6
1625 },
1626 {
1627 "createdAt": 2,
1628 "_links": {
1629 "parent": {
1630 "href": "href",
1631 "type": "type"
1632 },
1633 "self": {
1634 "href": "href",
1635 "type": "type"
1636 }
1637 },
1638 "name": "name",
1639 "description": "description",
1640 "version": 1,
1641 "key": "key",
1642 "flagKey": "flagKey",
1643 "tags": [
1644 "tags",
1645 "tags"
1646 ],
1647 "updatedAt": 6
1648 }
1649 ]
1650 },
1651 "metrics": {
1652 "totalCount": 3,
1653 "items": [
1654 {
1655 "_links": {
1656 "parent": {
1657 "href": "href",
1658 "type": "type"
1659 },
1660 "self": {
1661 "href": "href",
1662 "type": "type"
1663 }
1664 },
1665 "kind": "kind",
1666 "description": "description",
1667 "creationDate": 9,
1668 "isActive": true,
1669 "lastSeen": 3,
1670 "eventKey": "eventKey",
1671 "_versionId": "_versionId",
1672 "isNumeric": true,
1673 "name": "name",
1674 "lastModified": 6,
1675 "_id": "_id",
1676 "category": "category",
1677 "key": "key"
1678 },
1679 {
1680 "_links": {
1681 "parent": {
1682 "href": "href",
1683 "type": "type"
1684 },
1685 "self": {
1686 "href": "href",
1687 "type": "type"
1688 }
1689 },
1690 "kind": "kind",
1691 "description": "description",
1692 "creationDate": 9,
1693 "isActive": true,
1694 "lastSeen": 3,
1695 "eventKey": "eventKey",
1696 "_versionId": "_versionId",
1697 "isNumeric": true,
1698 "name": "name",
1699 "lastModified": 6,
1700 "_id": "_id",
1701 "category": "category",
1702 "key": "key"
1703 }
1704 ]
1705 }
1706 },
1707 "totalCount": 7
1708 },
1709 "generateSdkKeys": true
1710 },
1711 "flag": {
1712 "key": "key",
1713 "name": "name",
1714 "description": "description",
1715 "creationDate": 7,
1716 "_version": 1,
1717 "archived": true,
1718 "tags": [
1719 "tags",
1720 "tags"
1721 ],
1722 "temporary": true,
1723 "includeInSnippet": true,
1724 "maintainer": {
1725 "key": "key",
1726 "kind": "member",
1727 "_member": {
1728 "_links": {
1729 "self": {
1730 "href": "/api/v2/members/569f183514f4432160000007",
1731 "type": "application/json"
1732 }
1733 },
1734 "_id": "569f183514f4432160000007",
1735 "role": "admin",
1736 "email": "ariel@acme.com",
1737 "firstName": "Ariel",
1738 "lastName": "Flores"
1739 },
1740 "_team": {
1741 "customRoleKeys": [
1742 "access-to-test-projects"
1743 ],
1744 "key": "team-key-123abc",
1745 "name": "QA Team",
1746 "_links": {
1747 "key": {
1748 "href": "href",
1749 "type": "type"
1750 }
1751 }
1752 }
1753 },
1754 "_links": {
1755 "self": {
1756 "href": "href",
1757 "type": "type"
1758 },
1759 "parent": {
1760 "href": "href",
1761 "type": "type"
1762 }
1763 }
1764 },
1765 "segment": {
1766 "key": "key",
1767 "name": "name",
1768 "environmentId": "environmentId",
1769 "environmentKey": "environmentKey",
1770 "description": "description",
1771 "creationDate": 5,
1772 "lastModifiedDate": 9,
1773 "deleted": true,
1774 "tags": [
1775 "tags",
1776 "tags"
1777 ],
1778 "unbounded": true,
1779 "version": 9,
1780 "generation": 6,
1781 "_links": {
1782 "self": {
1783 "href": "href",
1784 "type": "type"
1785 },
1786 "parent": {
1787 "href": "href",
1788 "type": "type"
1789 }
1790 }
1791 },
1792 "aiConfig": {
1793 "key": "key",
1794 "name": "name",
1795 "tags": [
1796 "tags",
1797 "tags"
1798 ],
1799 "description": "description",
1800 "version": 1,
1801 "createdAt": 2,
1802 "updatedAt": 6,
1803 "flagKey": "flagKey",
1804 "_links": {
1805 "self": {
1806 "href": "href",
1807 "type": "type"
1808 },
1809 "parent": {
1810 "href": "href",
1811 "type": "type"
1812 }
1813 }
1814 },
1815 "metric": {
1816 "key": "key",
1817 "name": "name",
1818 "creationDate": 9,
1819 "lastModified": 6,
1820 "isActive": true,
1821 "eventKey": "eventKey",
1822 "_id": "_id",
1823 "_versionId": "_versionId",
1824 "kind": "kind",
1825 "category": "category",
1826 "description": "description",
1827 "isNumeric": true,
1828 "lastSeen": 3,
1829 "_links": {
1830 "self": {
1831 "href": "href",
1832 "type": "type"
1833 },
1834 "parent": {
1835 "href": "href",
1836 "type": "type"
1837 }
1838 }
1839 }
1840 }
1841 }
1842 ],
1843 "totalCount": 5,
1844 "_links": {
1845 "self": {
1846 "href": "href",
1847 "type": "type"
1848 },
1849 "first": {
1850 "href": "href",
1851 "type": "type"
1852 },
1853 "last": {
1854 "href": "href",
1855 "type": "type"
1856 },
1857 "next": {
1858 "href": "href",
1859 "type": "type"
1860 },
1861 "prev": {
1862 "href": "href",
1863 "type": "type"
1864 }
1865 }
1866 },
1867 "failedResources": [
1868 {
1869 "resourceKey": "resourceKey",
1870 "resourceType": "flag",
1871 "errorMessage": "errorMessage",
1872 "environmentId": "environmentId"
1873 },
1874 {
1875 "resourceKey": "resourceKey",
1876 "resourceType": "flag",
1877 "errorMessage": "errorMessage",
1878 "environmentId": "environmentId"
1879 }
1880 ]
1881}
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).
Was this page helpful?
Previous

List views

Next
Built with

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

Authentication

Authorizationstring
API Key authentication via header

Path parameters

projectKeystringRequired
viewKeystringRequired
resourceTypeenumRequired
Allowed values:

Headers

LD-API-VersionenumRequired
Version of the endpoint.
Allowed values:

Request

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
ViewLinkRequestKeysobjectRequired
OR
ViewLinkRequestSegmentIdentifiersobjectRequired
OR
ViewLinkRequestFilterobjectRequired

Response

Successful response
successCountinteger
The number of resources successfully linked.
failureCountinteger
The number of resources that failed to link.
linkedResourcesobject
failedResourceslist of objects
Details of resources that failed to link.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error

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