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