Raw
1 get:
2 operationId: GetCollections
3 summary: List Collections
4 description: >-
5 Retrieve a list of collections. The collections can be filtered by fields
6 such as `id`. The collections can also be sorted or paginated.
7 x-authenticated: true
8 parameters:
9 - name: fields
10 in: query
11 description: >-
12 Comma-separated fields that should be included in the returned data. if
13 a field is prefixed with `+` it will be added to the default fields,
14 using `-` will remove it from the default fields. without prefix it will
15 replace the entire default fields.
16 required: false
17 schema:
18 type: string
19 title: fields
20 description: >-
21 Comma-separated fields that should be included in the returned data.
22 if a field is prefixed with `+` it will be added to the default
23 fields, using `-` will remove it from the default fields. without
24 prefix it will replace the entire default fields.
25 externalDocs:
26 url: '#select-fields-and-relations'
27 - name: offset
28 in: query
29 description: The number of items to skip when retrieving a list.
30 required: false
31 schema:
32 type: number
33 title: offset
34 description: The number of items to skip when retrieving a list.
35 externalDocs:
36 url: '#pagination'
37 - name: limit
38 in: query
39 description: Limit the number of items returned in the list.
40 required: false
41 schema:
42 type: number
43 title: limit
44 description: Limit the number of items returned in the list.
45 externalDocs:
46 url: '#pagination'
47 - name: order
48 in: query
49 description: >-
50 The field to sort the data by. By default, the sort order is ascending.
51 To change the order to descending, prefix the field name with `-`.
52 required: false
53 schema:
54 type: string
55 title: order
56 description: >-
57 The field to sort the data by. By default, the sort order is
58 ascending. To change the order to descending, prefix the field name
59 with `-`.
60 - name: deleted_at
61 in: query
62 description: Filter by the collection's deletion date.
63 required: false
64 schema:
65 type: object
66 description: Filter by the collection's deletion date.
67 properties:
68 $and:
69 type: array
70 description: >-
71 Join query parameters with an AND condition. Each object's content
72 is the same type as the expected query parameters.
73 items:
74 type: object
75 title: $and
76 $or:
77 type: array
78 description: >-
79 Join query parameters with an OR condition. Each object's content
80 is the same type as the expected query parameters.
81 items:
82 type: object
83 title: $or
84 $eq:
85 oneOf:
86 - type: string
87 title: $eq
88 description: Filter by an exact match.
89 - type: array
90 description: Filter by multiple exact matches.
91 items:
92 type: string
93 title: $eq
94 description: An exact match.
95 $ne:
96 type: string
97 title: $ne
98 description: Filter by values not equal to this parameter.
99 $in:
100 type: array
101 description: Filter by values in this array.
102 items:
103 type: string
104 title: $in
105 description: The value to match.
106 $nin:
107 type: array
108 description: Filter by values not in this array.
109 items:
110 type: string
111 title: $nin
112 description: The value not to match.
113 $not:
114 oneOf:
115 - type: string
116 title: $not
117 description: Filter by values not matching this parameter.
118 - type: object
119 description: >-
120 Filter by values not matching the conditions in this
121 parameter.
122 properties:
123 $and:
124 type: array
125 description: >-
126 Join query parameters with an AND condition. Each object's
127 content is the same type as the expected query parameters.
128 items:
129 type: object
130 title: $and
131 $or:
132 type: array
133 description: >-
134 Join query parameters with an OR condition. Each object's
135 content is the same type as the expected query parameters.
136 items:
137 type: object
138 title: $or
139 $eq:
140 oneOf:
141 - type: string
142 title: $eq
143 description: Filter by an exact match.
144 - type: array
145 description: Filter by multiple exact matches.
146 items:
147 type: string
148 title: $eq
149 description: The value to match.
150 $ne:
151 type: string
152 title: $ne
153 description: Filter by values not matching this parameter.
154 $in:
155 type: array
156 description: Filter by values in this array.
157 items:
158 type: string
159 title: $in
160 description: The value to match.
161 $nin:
162 type: array
163 description: Filter by values not in this array.
164 items:
165 type: string
166 title: $nin
167 description: The value to not match
168 $not:
169 oneOf:
170 - type: string
171 title: $not
172 description: Filter by values not matching this parameter
173 - type: object
174 description: >-
175 Filter by values not matching the conditions in this
176 parameter.
177 - type: array
178 description: >-
179 Filter by values not matching the values of this
180 parameter.
181 items:
182 type: string
183 title: $not
184 description: The values to not match.
185 $gt:
186 type: string
187 title: $gt
188 description: >-
189 Filter by values greater than this parameter. Useful for
190 numbers and dates only.
191 $gte:
192 type: string
193 title: $gte
194 description: >-
195 Filter by values greater than or equal to this parameter.
196 Useful for numbers and dates only.
197 $lt:
198 type: string
199 title: $lt
200 description: >-
201 Filter by values less than this parameter. Useful for
202 numbers and dates only.
203 $lte:
204 type: string
205 title: $lte
206 description: >-
207 Filter by values less than or equal to this parameter.
208 Useful for numbers and dates only.
209 $like:
210 type: string
211 title: $like
212 description: Apply a `like` filter. Useful for strings only.
213 $re:
214 type: string
215 title: $re
216 description: Apply a regex filter. Useful for strings only.
217 $ilike:
218 type: string
219 title: $ilike
220 description: >-
221 Apply a case-insensitive `like` filter. Useful for strings
222 only.
223 $fulltext:
224 type: string
225 title: $fulltext
226 description: Filter to apply on full-text properties.
227 $overlap:
228 type: array
229 description: >-
230 Filter arrays that have overlapping values with this
231 parameter.
232 items:
233 type: string
234 title: $overlap
235 description: The value to match.
236 $contains:
237 type: array
238 description: >-
239 Filter arrays that contain some of the values of this
240 parameter.
241 items:
242 type: string
243 title: $contains
244 description: The values to match.
245 $contained:
246 type: array
247 description: Filter arrays that contain all values of this parameter.
248 items:
249 type: string
250 title: $contained
251 description: The values to match.
252 $exists:
253 type: boolean
254 title: $exists
255 description: >-
256 Filter by whether a value for this parameter exists (not
257 `null`).
258 - type: array
259 description: Filter by values not matching those in this parameter.
260 items:
261 type: string
262 title: $not
263 description: The values to not match.
264 $gt:
265 type: string
266 title: $gt
267 description: >-
268 Filter by values greater than this parameter. Useful for numbers
269 and dates only.
270 $gte:
271 type: string
272 title: $gte
273 description: >-
274 Filter by values greater than or equal to this parameter. Useful
275 for numbers and dates only.
276 $lt:
277 type: string
278 title: $lt
279 description: >-
280 Filter by values less than this parameter. Useful for numbers and
281 dates only.
282 $lte:
283 type: string
284 title: $lte
285 description: >-
286 Filter by values less than or equal to this parameter. Useful for
287 numbers and dates only.
288 $like:
289 type: string
290 title: $like
291 description: Apply a `like` filter. Useful for strings only.
292 $re:
293 type: string
294 title: $re
295 description: Apply a regex filter. Useful for strings only.
296 $ilike:
297 type: string
298 title: $ilike
299 description: Apply a case-insensitive `like` filter. Useful for strings only.
300 $fulltext:
301 type: string
302 title: $fulltext
303 description: Filter to apply on full-text properties.
304 $overlap:
305 type: array
306 description: Filter arrays that have overlapping values with this parameter.
307 items:
308 type: string
309 title: $overlap
310 description: The values to match.
311 $contains:
312 type: array
313 description: Filter arrays that contain some of the values of this parameter.
314 items:
315 type: string
316 title: $contains
317 description: The values to match.
318 $contained:
319 type: array
320 description: Filter arrays that contain all values of this parameter.
321 items:
322 type: string
323 title: $contained
324 description: The values to match.
325 $exists:
326 type: boolean
327 title: $exists
328 description: Filter by whether a value for this parameter exists (not `null`).
329 title: deleted_at
330 - name: q
331 in: query
332 description: Search term to filter the collection's searchable properties by.
333 required: false
334 schema:
335 type: string
336 title: q
337 description: Search term to filter the collection's searchable properties by.
338 - name: id
339 in: query
340 required: false
341 schema:
342 oneOf:
343 - type: string
344 title: id
345 description: Filter by a collection's ID.
346 - type: array
347 description: Filter by collection IDs.
348 items:
349 type: string
350 title: id
351 description: The collection's ID.
352 - name: handle
353 in: query
354 required: false
355 schema:
356 oneOf:
357 - type: string
358 title: handle
359 description: Filter by a collection's handle.
360 - type: array
361 description: Filter by collection handles.
362 items:
363 type: string
364 title: handle
365 description: The collection's handle.
366 - name: title
367 in: query
368 required: false
369 schema:
370 oneOf:
371 - type: string
372 title: title
373 description: Filter by a collection's title.
374 - type: array
375 description: Filter by collection titles.
376 items:
377 type: string
378 title: title
379 description: The collection's title.
380 - name: created_at
381 in: query
382 description: Filter by the collection's creation date.
383 required: false
384 schema:
385 type: object
386 description: Filter by the collection's creation date.
387 properties:
388 $and:
389 type: array
390 description: >-
391 Join query parameters with an AND condition. Each object's content
392 is the same type as the expected query parameters.
393 items:
394 type: object
395 title: $and
396 $or:
397 type: array
398 description: >-
399 Join query parameters with an OR condition. Each object's content
400 is the same type as the expected query parameters.
401 items:
402 type: object
403 title: $or
404 $eq:
405 oneOf:
406 - type: string
407 title: $eq
408 description: Filter by an exact match.
409 - type: array
410 description: Filter by multiple exact matches.
411 items:
412 type: string
413 title: $eq
414 description: An exact match.
415 $ne:
416 type: string
417 title: $ne
418 description: Filter by values not equal to this parameter.
419 $in:
420 type: array
421 description: Filter by values in this array.
422 items:
423 type: string
424 title: $in
425 description: The value to match.
426 $nin:
427 type: array
428 description: Filter by values not in this array.
429 items:
430 type: string
431 title: $nin
432 description: The value not to match.
433 $not:
434 oneOf:
435 - type: string
436 title: $not
437 description: Filter by values not matching this parameter.
438 - type: object
439 description: >-
440 Filter by values not matching the conditions in this
441 parameter.
442 properties:
443 $and:
444 type: array
445 description: >-
446 Join query parameters with an AND condition. Each object's
447 content is the same type as the expected query parameters.
448 items:
449 type: object
450 title: $and
451 $or:
452 type: array
453 description: >-
454 Join query parameters with an OR condition. Each object's
455 content is the same type as the expected query parameters.
456 items:
457 type: object
458 title: $or
459 $eq:
460 oneOf:
461 - type: string
462 title: $eq
463 description: Filter by an exact match.
464 - type: array
465 description: Filter by multiple exact matches.
466 items:
467 type: string
468 title: $eq
469 description: The value to match.
470 $ne:
471 type: string
472 title: $ne
473 description: Filter by values not matching this parameter.
474 $in:
475 type: array
476 description: Filter by values in this array.
477 items:
478 type: string
479 title: $in
480 description: The value to match.
481 $nin:
482 type: array
483 description: Filter by values not in this array.
484 items:
485 type: string
486 title: $nin
487 description: The value to not match
488 $not:
489 oneOf:
490 - type: string
491 title: $not
492 description: Filter by values not matching this parameter
493 - type: object
494 description: >-
495 Filter by values not matching the conditions in this
496 parameter.
497 - type: array
498 description: >-
499 Filter by values not matching the values of this
500 parameter.
501 items:
502 type: string
503 title: $not
504 description: The values to not match.
505 $gt:
506 type: string
507 title: $gt
508 description: >-
509 Filter by values greater than this parameter. Useful for
510 numbers and dates only.
511 $gte:
512 type: string
513 title: $gte
514 description: >-
515 Filter by values greater than or equal to this parameter.
516 Useful for numbers and dates only.
517 $lt:
518 type: string
519 title: $lt
520 description: >-
521 Filter by values less than this parameter. Useful for
522 numbers and dates only.
523 $lte:
524 type: string
525 title: $lte
526 description: >-
527 Filter by values less than or equal to this parameter.
528 Useful for numbers and dates only.
529 $like:
530 type: string
531 title: $like
532 description: Apply a `like` filter. Useful for strings only.
533 $re:
534 type: string
535 title: $re
536 description: Apply a regex filter. Useful for strings only.
537 $ilike:
538 type: string
539 title: $ilike
540 description: >-
541 Apply a case-insensitive `like` filter. Useful for strings
542 only.
543 $fulltext:
544 type: string
545 title: $fulltext
546 description: Filter to apply on full-text properties.
547 $overlap:
548 type: array
549 description: >-
550 Filter arrays that have overlapping values with this
551 parameter.
552 items:
553 type: string
554 title: $overlap
555 description: The value to match.
556 $contains:
557 type: array
558 description: >-
559 Filter arrays that contain some of the values of this
560 parameter.
561 items:
562 type: string
563 title: $contains
564 description: The values to match.
565 $contained:
566 type: array
567 description: Filter arrays that contain all values of this parameter.
568 items:
569 type: string
570 title: $contained
571 description: The values to match.
572 $exists:
573 type: boolean
574 title: $exists
575 description: >-
576 Filter by whether a value for this parameter exists (not
577 `null`).
578 - type: array
579 description: Filter by values not matching those in this parameter.
580 items:
581 type: string
582 title: $not
583 description: The values to not match.
584 $gt:
585 type: string
586 title: $gt
587 description: >-
588 Filter by values greater than this parameter. Useful for numbers
589 and dates only.
590 $gte:
591 type: string
592 title: $gte
593 description: >-
594 Filter by values greater than or equal to this parameter. Useful
595 for numbers and dates only.
596 $lt:
597 type: string
598 title: $lt
599 description: >-
600 Filter by values less than this parameter. Useful for numbers and
601 dates only.
602 $lte:
603 type: string
604 title: $lte
605 description: >-
606 Filter by values less than or equal to this parameter. Useful for
607 numbers and dates only.
608 $like:
609 type: string
610 title: $like
611 description: Apply a `like` filter. Useful for strings only.
612 $re:
613 type: string
614 title: $re
615 description: Apply a regex filter. Useful for strings only.
616 $ilike:
617 type: string
618 title: $ilike
619 description: Apply a case-insensitive `like` filter. Useful for strings only.
620 $fulltext:
621 type: string
622 title: $fulltext
623 description: Filter to apply on full-text properties.
624 $overlap:
625 type: array
626 description: Filter arrays that have overlapping values with this parameter.
627 items:
628 type: string
629 title: $overlap
630 description: The values to match.
631 $contains:
632 type: array
633 description: Filter arrays that contain some of the values of this parameter.
634 items:
635 type: string
636 title: $contains
637 description: The values to match.
638 $contained:
639 type: array
640 description: Filter arrays that contain all values of this parameter.
641 items:
642 type: string
643 title: $contained
644 description: The values to match.
645 $exists:
646 type: boolean
647 title: $exists
648 description: Filter by whether a value for this parameter exists (not `null`).
649 title: created_at
650 - name: updated_at
651 in: query
652 description: Filter by the collection's update date.
653 required: false
654 schema:
655 type: object
656 description: Filter by the collection's update date.
657 properties:
658 $and:
659 type: array
660 description: >-
661 Join query parameters with an AND condition. Each object's content
662 is the same type as the expected query parameters.
663 items:
664 type: object
665 title: $and
666 $or:
667 type: array
668 description: >-
669 Join query parameters with an OR condition. Each object's content
670 is the same type as the expected query parameters.
671 items:
672 type: object
673 title: $or
674 $eq:
675 oneOf:
676 - type: string
677 title: $eq
678 description: Filter by an exact match.
679 - type: array
680 description: Filter by multiple exact matches.
681 items:
682 type: string
683 title: $eq
684 description: An exact match.
685 $ne:
686 type: string
687 title: $ne
688 description: Filter by values not equal to this parameter.
689 $in:
690 type: array
691 description: Filter by values in this array.
692 items:
693 type: string
694 title: $in
695 description: The value to match.
696 $nin:
697 type: array
698 description: Filter by values not in this array.
699 items:
700 type: string
701 title: $nin
702 description: The value not to match.
703 $not:
704 oneOf:
705 - type: string
706 title: $not
707 description: Filter by values not matching this parameter.
708 - type: object
709 description: >-
710 Filter by values not matching the conditions in this
711 parameter.
712 properties:
713 $and:
714 type: array
715 description: >-
716 Join query parameters with an AND condition. Each object's
717 content is the same type as the expected query parameters.
718 items:
719 type: object
720 title: $and
721 $or:
722 type: array
723 description: >-
724 Join query parameters with an OR condition. Each object's
725 content is the same type as the expected query parameters.
726 items:
727 type: object
728 title: $or
729 $eq:
730 oneOf:
731 - type: string
732 title: $eq
733 description: Filter by an exact match.
734 - type: array
735 description: Filter by multiple exact matches.
736 items:
737 type: string
738 title: $eq
739 description: The value to match.
740 $ne:
741 type: string
742 title: $ne
743 description: Filter by values not matching this parameter.
744 $in:
745 type: array
746 description: Filter by values in this array.
747 items:
748 type: string
749 title: $in
750 description: The value to match.
751 $nin:
752 type: array
753 description: Filter by values not in this array.
754 items:
755 type: string
756 title: $nin
757 description: The value to not match
758 $not:
759 oneOf:
760 - type: string
761 title: $not
762 description: Filter by values not matching this parameter
763 - type: object
764 description: >-
765 Filter by values not matching the conditions in this
766 parameter.
767 - type: array
768 description: >-
769 Filter by values not matching the values of this
770 parameter.
771 items:
772 type: string
773 title: $not
774 description: The values to not match.
775 $gt:
776 type: string
777 title: $gt
778 description: >-
779 Filter by values greater than this parameter. Useful for
780 numbers and dates only.
781 $gte:
782 type: string
783 title: $gte
784 description: >-
785 Filter by values greater than or equal to this parameter.
786 Useful for numbers and dates only.
787 $lt:
788 type: string
789 title: $lt
790 description: >-
791 Filter by values less than this parameter. Useful for
792 numbers and dates only.
793 $lte:
794 type: string
795 title: $lte
796 description: >-
797 Filter by values less than or equal to this parameter.
798 Useful for numbers and dates only.
799 $like:
800 type: string
801 title: $like
802 description: Apply a `like` filter. Useful for strings only.
803 $re:
804 type: string
805 title: $re
806 description: Apply a regex filter. Useful for strings only.
807 $ilike:
808 type: string
809 title: $ilike
810 description: >-
811 Apply a case-insensitive `like` filter. Useful for strings
812 only.
813 $fulltext:
814 type: string
815 title: $fulltext
816 description: Filter to apply on full-text properties.
817 $overlap:
818 type: array
819 description: >-
820 Filter arrays that have overlapping values with this
821 parameter.
822 items:
823 type: string
824 title: $overlap
825 description: The value to match.
826 $contains:
827 type: array
828 description: >-
829 Filter arrays that contain some of the values of this
830 parameter.
831 items:
832 type: string
833 title: $contains
834 description: The values to match.
835 $contained:
836 type: array
837 description: Filter arrays that contain all values of this parameter.
838 items:
839 type: string
840 title: $contained
841 description: The values to match.
842 $exists:
843 type: boolean
844 title: $exists
845 description: >-
846 Filter by whether a value for this parameter exists (not
847 `null`).
848 - type: array
849 description: Filter by values not matching those in this parameter.
850 items:
851 type: string
852 title: $not
853 description: The values to not match.
854 $gt:
855 type: string
856 title: $gt
857 description: >-
858 Filter by values greater than this parameter. Useful for numbers
859 and dates only.
860 $gte:
861 type: string
862 title: $gte
863 description: >-
864 Filter by values greater than or equal to this parameter. Useful
865 for numbers and dates only.
866 $lt:
867 type: string
868 title: $lt
869 description: >-
870 Filter by values less than this parameter. Useful for numbers and
871 dates only.
872 $lte:
873 type: string
874 title: $lte
875 description: >-
876 Filter by values less than or equal to this parameter. Useful for
877 numbers and dates only.
878 $like:
879 type: string
880 title: $like
881 description: Apply a `like` filter. Useful for strings only.
882 $re:
883 type: string
884 title: $re
885 description: Apply a regex filter. Useful for strings only.
886 $ilike:
887 type: string
888 title: $ilike
889 description: Apply a case-insensitive `like` filter. Useful for strings only.
890 $fulltext:
891 type: string
892 title: $fulltext
893 description: Filter to apply on full-text properties.
894 $overlap:
895 type: array
896 description: Filter arrays that have overlapping values with this parameter.
897 items:
898 type: string
899 title: $overlap
900 description: The values to match.
901 $contains:
902 type: array
903 description: Filter arrays that contain some of the values of this parameter.
904 items:
905 type: string
906 title: $contains
907 description: The values to match.
908 $contained:
909 type: array
910 description: Filter arrays that contain all values of this parameter.
911 items:
912 type: string
913 title: $contained
914 description: The values to match.
915 $exists:
916 type: boolean
917 title: $exists
918 description: Filter by whether a value for this parameter exists (not `null`).
919 title: updated_at
920 - name: $and
921 in: query
922 description: >-
923 Join query parameters with an AND condition. Each object's content is
924 the same type as the expected query parameters.
925 required: false
926 schema:
927 type: array
928 description: >-
929 Join query parameters with an AND condition. Each object's content is
930 the same type as the expected query parameters.
931 items:
932 type: object
933 title: $and
934 - name: $or
935 in: query
936 description: >-
937 Join query parameters with an OR condition. Each object's content is the
938 same type as the expected query parameters.
939 required: false
940 schema:
941 type: array
942 description: >-
943 Join query parameters with an OR condition. Each object's content is
944 the same type as the expected query parameters.
945 items:
946 type: object
947 title: $or
948 - name: with_deleted
949 in: query
950 description: Whether to include deleted records in the result.
951 required: false
952 schema:
953 type: boolean
954 title: with_deleted
955 description: Whether to include deleted records in the result.
956 - name: external_id
957 in: query
958 required: false
959 schema:
960 oneOf:
961 - type: string
962 title: external_id
963 description: Filter by an external ID.
964 - type: array
965 description: Filter by multiple external IDs.
966 items:
967 type: string
968 title: external_id
969 description: An external ID.
970 security:
971 - api_token: []
972 - cookie_auth: []
973 - jwt_token: []
974 x-codeSamples:
975 - lang: JavaScript
976 label: JS SDK
977 source:
978 $ref: ../code_samples/JavaScript/admin_collections/get.js
979 - lang: Shell
980 label: cURL
981 source:
982 $ref: ../code_samples/Shell/admin_collections/get.sh
983 tags:
984 - Collections
985 responses:
986 '200':
987 description: OK
988 content:
989 application/json:
990 schema:
991 $ref: ../components/schemas/AdminCollectionListResponse.yaml
992 '400':
993 $ref: ../components/responses/400_error.yaml
994 '401':
995 $ref: ../components/responses/unauthorized.yaml
996 '404':
997 $ref: ../components/responses/not_found_error.yaml
998 '409':
999 $ref: ../components/responses/invalid_state_error.yaml
1000 '422':
1001 $ref: ../components/responses/invalid_request_error.yaml
1002 '500':
1003 $ref: ../components/responses/500_error.yaml
1004 post:
1005 operationId: PostCollections
1006 summary: Create Collection
1007 description: Create a collection.
1008 x-authenticated: true
1009 parameters:
1010 - name: fields
1011 in: query
1012 description: >-
1013 Comma-separated fields that should be included in the returned data. if
1014 a field is prefixed with `+` it will be added to the default fields,
1015 using `-` will remove it from the default fields. without prefix it will
1016 replace the entire default fields.
1017 required: false
1018 schema:
1019 type: string
1020 title: fields
1021 description: >-
1022 Comma-separated fields that should be included in the returned data.
1023 if a field is prefixed with `+` it will be added to the default
1024 fields, using `-` will remove it from the default fields. without
1025 prefix it will replace the entire default fields.
1026 externalDocs:
1027 url: '#select-fields-and-relations'
1028 security:
1029 - api_token: []
1030 - cookie_auth: []
1031 - jwt_token: []
1032 requestBody:
1033 content:
1034 application/json:
1035 schema:
1036 allOf:
1037 - type: object
1038 description: The collection's details.
1039 required:
1040 - title
1041 properties:
1042 title:
1043 type: string
1044 title: title
1045 description: The collection's title.
1046 handle:
1047 type: string
1048 title: handle
1049 description: The collection's handle.
1050 metadata:
1051 type: object
1052 description: The collection's metadata. Can hold custom key-value pairs.
1053 - type: object
1054 description: The collection's details.
1055 properties:
1056 additional_data:
1057 type: object
1058 description: >-
1059 Pass additional custom data to the API route. This data is
1060 passed to the underlying workflow under the
1061 `additional_data` parameter.
1062 description: the product collection's details.
1063 x-codeSamples:
1064 - lang: JavaScript
1065 label: JS SDK
1066 source:
1067 $ref: ../code_samples/JavaScript/admin_collections/post.js
1068 - lang: Shell
1069 label: cURL
1070 source:
1071 $ref: ../code_samples/Shell/admin_collections/post.sh
1072 tags:
1073 - Collections
1074 responses:
1075 '200':
1076 description: OK
1077 content:
1078 application/json:
1079 schema:
1080 $ref: ../components/schemas/AdminCollectionResponse.yaml
1081 '400':
1082 $ref: ../components/responses/400_error.yaml
1083 '401':
1084 $ref: ../components/responses/unauthorized.yaml
1085 '404':
1086 $ref: ../components/responses/not_found_error.yaml
1087 '409':
1088 $ref: ../components/responses/invalid_state_error.yaml
1089 '422':
1090 $ref: ../components/responses/invalid_request_error.yaml
1091 '500':
1092 $ref: ../components/responses/500_error.yaml
1093 x-workflow: createCollectionsWorkflow
1094 x-events:
1095 - name: product-collection.created
1096 payload: |-
1097 ```ts
1098 {
1099 id, // The ID of the product collection
1100 }
1101 ```
1102 description: Emitted when product collections are created.
1103 deprecated: false