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

Get linked views for a given resource

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

Get view

Next
Built with

Authentication

Authorizationstring
API Key authentication via header

Path parameters

projectKeystringRequired
resourceTypeenumRequired
Allowed values:
resourceKeystringRequired

Headers

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

Query parameters

environmentIdstringOptional
Environment ID. Required when resourceType is 'segments'
limitintegerOptional
The number of views to return.
offsetintegerOptional

Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query limit.

Response

Successful response
itemslist of objects
totalCountinteger
_linksobject

Errors

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