@wppconnect/server 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/controller/catalogController.js +273 -83
- package/dist/controller/groupController.js +309 -104
- package/dist/controller/labelsController.js +67 -13
- package/dist/controller/messageController.js +282 -89
- package/dist/controller/miscController.js +27 -14
- package/dist/controller/orderController.js +22 -7
- package/dist/controller/sessionController.js +39 -22
- package/dist/controller/statusController.js +67 -14
- package/dist/swagger.json +1501 -1125
- package/dist/util/sessionUtil.js +8 -2
- package/dist/util/tokenStore/model/token.js +10 -11
- package/package.json +8 -8
package/dist/swagger.json
CHANGED
|
@@ -98,23 +98,9 @@
|
|
|
98
98
|
"name": "secretkey",
|
|
99
99
|
"in": "path",
|
|
100
100
|
"required": true,
|
|
101
|
-
"schema": {
|
|
102
|
-
"type": "string"
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "session",
|
|
107
101
|
"schema": {
|
|
108
102
|
"type": "string",
|
|
109
|
-
"example": "
|
|
110
|
-
},
|
|
111
|
-
"in": "query"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"name": "authorization",
|
|
115
|
-
"in": "header",
|
|
116
|
-
"schema": {
|
|
117
|
-
"type": "string"
|
|
103
|
+
"example": "THISISMYSECURETOKEN"
|
|
118
104
|
}
|
|
119
105
|
}
|
|
120
106
|
],
|
|
@@ -640,28 +626,6 @@
|
|
|
640
626
|
"type": "string",
|
|
641
627
|
"example": "NERDWHATS_AMERICA"
|
|
642
628
|
}
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
"name": "obj",
|
|
646
|
-
"in": "body",
|
|
647
|
-
"schema": {
|
|
648
|
-
"type": "object",
|
|
649
|
-
"properties": {
|
|
650
|
-
"phone": {
|
|
651
|
-
"type": "string",
|
|
652
|
-
"example": "5521999999999"
|
|
653
|
-
},
|
|
654
|
-
"message": {
|
|
655
|
-
"type": "string",
|
|
656
|
-
"example": "Hello, welcome to WPPConnect"
|
|
657
|
-
},
|
|
658
|
-
"isGroup": {
|
|
659
|
-
"type": "boolean",
|
|
660
|
-
"example": false
|
|
661
|
-
}
|
|
662
|
-
},
|
|
663
|
-
"required": ["phone", "message", "isGroup"]
|
|
664
|
-
}
|
|
665
629
|
}
|
|
666
630
|
],
|
|
667
631
|
"responses": {
|
|
@@ -673,7 +637,37 @@
|
|
|
673
637
|
{
|
|
674
638
|
"bearerAuth": []
|
|
675
639
|
}
|
|
676
|
-
]
|
|
640
|
+
],
|
|
641
|
+
"requestBody": {
|
|
642
|
+
"required": true,
|
|
643
|
+
"content": {
|
|
644
|
+
"application/json": {
|
|
645
|
+
"schema": {
|
|
646
|
+
"type": "object",
|
|
647
|
+
"properties": {
|
|
648
|
+
"$phone": {
|
|
649
|
+
"type": "string"
|
|
650
|
+
},
|
|
651
|
+
"$isGroup": {
|
|
652
|
+
"type": "boolean"
|
|
653
|
+
},
|
|
654
|
+
"$message": {
|
|
655
|
+
"type": "string"
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
"examples": {
|
|
660
|
+
"Default": {
|
|
661
|
+
"value": {
|
|
662
|
+
"phone": "5521999999999",
|
|
663
|
+
"isGroup": false,
|
|
664
|
+
"message": "Hello, welcome to WPPConnect"
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}
|
|
677
671
|
}
|
|
678
672
|
},
|
|
679
673
|
"/api/{session}/send-image": {
|
|
@@ -689,36 +683,6 @@
|
|
|
689
683
|
"type": "string",
|
|
690
684
|
"example": "NERDWHATS_AMERICA"
|
|
691
685
|
}
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
"name": "obj",
|
|
695
|
-
"in": "body",
|
|
696
|
-
"schema": {
|
|
697
|
-
"type": "object",
|
|
698
|
-
"properties": {
|
|
699
|
-
"phone": {
|
|
700
|
-
"type": "string",
|
|
701
|
-
"example": "5521999999999"
|
|
702
|
-
},
|
|
703
|
-
"isGroup": {
|
|
704
|
-
"type": "boolean",
|
|
705
|
-
"example": false
|
|
706
|
-
},
|
|
707
|
-
"filename": {
|
|
708
|
-
"type": "string",
|
|
709
|
-
"example": "file name lol"
|
|
710
|
-
},
|
|
711
|
-
"caption": {
|
|
712
|
-
"type": "string",
|
|
713
|
-
"example": "caption for my file"
|
|
714
|
-
},
|
|
715
|
-
"base64": {
|
|
716
|
-
"type": "string",
|
|
717
|
-
"example": "<base64> string"
|
|
718
|
-
}
|
|
719
|
-
},
|
|
720
|
-
"required": ["phone", "isGroup", "filename", "caption", "base64"]
|
|
721
|
-
}
|
|
722
686
|
}
|
|
723
687
|
],
|
|
724
688
|
"responses": {
|
|
@@ -733,7 +697,45 @@
|
|
|
733
697
|
{
|
|
734
698
|
"bearerAuth": []
|
|
735
699
|
}
|
|
736
|
-
]
|
|
700
|
+
],
|
|
701
|
+
"requestBody": {
|
|
702
|
+
"required": true,
|
|
703
|
+
"content": {
|
|
704
|
+
"application/json": {
|
|
705
|
+
"schema": {
|
|
706
|
+
"type": "object",
|
|
707
|
+
"properties": {
|
|
708
|
+
"phone": {
|
|
709
|
+
"type": "string"
|
|
710
|
+
},
|
|
711
|
+
"isGroup": {
|
|
712
|
+
"type": "boolean"
|
|
713
|
+
},
|
|
714
|
+
"filename": {
|
|
715
|
+
"type": "string"
|
|
716
|
+
},
|
|
717
|
+
"caption": {
|
|
718
|
+
"type": "string"
|
|
719
|
+
},
|
|
720
|
+
"base64": {
|
|
721
|
+
"type": "string"
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
"examples": {
|
|
726
|
+
"Default": {
|
|
727
|
+
"value": {
|
|
728
|
+
"phone": "5521999999999",
|
|
729
|
+
"isGroup": false,
|
|
730
|
+
"filename": "file name lol",
|
|
731
|
+
"caption": "caption for my file",
|
|
732
|
+
"base64": "<base64> string"
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
}
|
|
737
739
|
}
|
|
738
740
|
},
|
|
739
741
|
"/api/{session}/send-sticker": {
|
|
@@ -749,28 +751,6 @@
|
|
|
749
751
|
"type": "string",
|
|
750
752
|
"example": "NERDWHATS_AMERICA"
|
|
751
753
|
}
|
|
752
|
-
},
|
|
753
|
-
{
|
|
754
|
-
"name": "obj",
|
|
755
|
-
"in": "body",
|
|
756
|
-
"schema": {
|
|
757
|
-
"type": "object",
|
|
758
|
-
"properties": {
|
|
759
|
-
"phone": {
|
|
760
|
-
"type": "string",
|
|
761
|
-
"example": "5521999999999"
|
|
762
|
-
},
|
|
763
|
-
"isGroup": {
|
|
764
|
-
"type": "boolean",
|
|
765
|
-
"example": true
|
|
766
|
-
},
|
|
767
|
-
"path": {
|
|
768
|
-
"type": "string",
|
|
769
|
-
"example": "<path_file>"
|
|
770
|
-
}
|
|
771
|
-
},
|
|
772
|
-
"required": ["phone", "isGroup", "path"]
|
|
773
|
-
}
|
|
774
754
|
}
|
|
775
755
|
],
|
|
776
756
|
"responses": {
|
|
@@ -785,7 +765,38 @@
|
|
|
785
765
|
{
|
|
786
766
|
"bearerAuth": []
|
|
787
767
|
}
|
|
788
|
-
]
|
|
768
|
+
],
|
|
769
|
+
"requestBody": {
|
|
770
|
+
"required": true,
|
|
771
|
+
"content": {
|
|
772
|
+
"application/json": {
|
|
773
|
+
"schema": {
|
|
774
|
+
"type": "object",
|
|
775
|
+
"properties": {
|
|
776
|
+
"phone": {
|
|
777
|
+
"type": "string"
|
|
778
|
+
},
|
|
779
|
+
"isGroup": {
|
|
780
|
+
"type": "boolean"
|
|
781
|
+
},
|
|
782
|
+
"path": {
|
|
783
|
+
"type": "string"
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
"required": ["phone", "path"]
|
|
787
|
+
},
|
|
788
|
+
"examples": {
|
|
789
|
+
"Default": {
|
|
790
|
+
"value": {
|
|
791
|
+
"phone": "5521999999999",
|
|
792
|
+
"isGroup": true,
|
|
793
|
+
"path": "<path_file>"
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}
|
|
789
800
|
}
|
|
790
801
|
},
|
|
791
802
|
"/api/{session}/send-sticker-gif": {
|
|
@@ -801,28 +812,6 @@
|
|
|
801
812
|
"type": "string",
|
|
802
813
|
"example": "NERDWHATS_AMERICA"
|
|
803
814
|
}
|
|
804
|
-
},
|
|
805
|
-
{
|
|
806
|
-
"name": "obj",
|
|
807
|
-
"in": "body",
|
|
808
|
-
"schema": {
|
|
809
|
-
"type": "object",
|
|
810
|
-
"properties": {
|
|
811
|
-
"phone": {
|
|
812
|
-
"type": "string",
|
|
813
|
-
"example": "5521999999999"
|
|
814
|
-
},
|
|
815
|
-
"isGroup": {
|
|
816
|
-
"type": "boolean",
|
|
817
|
-
"example": true
|
|
818
|
-
},
|
|
819
|
-
"path": {
|
|
820
|
-
"type": "string",
|
|
821
|
-
"example": "<path_file>"
|
|
822
|
-
}
|
|
823
|
-
},
|
|
824
|
-
"required": ["phone", "isGroup", "path"]
|
|
825
|
-
}
|
|
826
815
|
}
|
|
827
816
|
],
|
|
828
817
|
"responses": {
|
|
@@ -837,7 +826,38 @@
|
|
|
837
826
|
{
|
|
838
827
|
"bearerAuth": []
|
|
839
828
|
}
|
|
840
|
-
]
|
|
829
|
+
],
|
|
830
|
+
"requestBody": {
|
|
831
|
+
"required": true,
|
|
832
|
+
"content": {
|
|
833
|
+
"application/json": {
|
|
834
|
+
"schema": {
|
|
835
|
+
"type": "object",
|
|
836
|
+
"properties": {
|
|
837
|
+
"phone": {
|
|
838
|
+
"type": "string"
|
|
839
|
+
},
|
|
840
|
+
"isGroup": {
|
|
841
|
+
"type": "boolean"
|
|
842
|
+
},
|
|
843
|
+
"path": {
|
|
844
|
+
"type": "string"
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
"required": ["phone", "path"]
|
|
848
|
+
},
|
|
849
|
+
"examples": {
|
|
850
|
+
"Default": {
|
|
851
|
+
"value": {
|
|
852
|
+
"phone": "5521999999999",
|
|
853
|
+
"isGroup": true,
|
|
854
|
+
"path": "<path_file>"
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
}
|
|
841
861
|
}
|
|
842
862
|
},
|
|
843
863
|
"/api/{session}/send-reply": {
|
|
@@ -853,32 +873,6 @@
|
|
|
853
873
|
"type": "string",
|
|
854
874
|
"example": "NERDWHATS_AMERICA"
|
|
855
875
|
}
|
|
856
|
-
},
|
|
857
|
-
{
|
|
858
|
-
"name": "obj",
|
|
859
|
-
"in": "body",
|
|
860
|
-
"schema": {
|
|
861
|
-
"type": "object",
|
|
862
|
-
"properties": {
|
|
863
|
-
"phone": {
|
|
864
|
-
"type": "string",
|
|
865
|
-
"example": "5521999999999"
|
|
866
|
-
},
|
|
867
|
-
"isGroup": {
|
|
868
|
-
"type": "boolean",
|
|
869
|
-
"example": false
|
|
870
|
-
},
|
|
871
|
-
"message": {
|
|
872
|
-
"type": "string",
|
|
873
|
-
"example": "Reply to message"
|
|
874
|
-
},
|
|
875
|
-
"messageId": {
|
|
876
|
-
"type": "string",
|
|
877
|
-
"example": "<id_message>"
|
|
878
|
-
}
|
|
879
|
-
},
|
|
880
|
-
"required": ["phone", "isGroup", "message", "messageId"]
|
|
881
|
-
}
|
|
882
876
|
}
|
|
883
877
|
],
|
|
884
878
|
"responses": {
|
|
@@ -890,51 +884,55 @@
|
|
|
890
884
|
{
|
|
891
885
|
"bearerAuth": []
|
|
892
886
|
}
|
|
893
|
-
]
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
"schema": {
|
|
914
|
-
"type": "object",
|
|
915
|
-
"properties": {
|
|
916
|
-
"phone": {
|
|
917
|
-
"type": "string",
|
|
918
|
-
"example": "5521999999999"
|
|
919
|
-
},
|
|
920
|
-
"isGroup": {
|
|
921
|
-
"type": "boolean",
|
|
922
|
-
"example": false
|
|
923
|
-
},
|
|
924
|
-
"filename": {
|
|
925
|
-
"type": "string",
|
|
926
|
-
"example": "file name lol"
|
|
927
|
-
},
|
|
928
|
-
"caption": {
|
|
929
|
-
"type": "string",
|
|
930
|
-
"example": "caption for my file"
|
|
931
|
-
},
|
|
932
|
-
"base64": {
|
|
933
|
-
"type": "string",
|
|
934
|
-
"example": "<base64> string"
|
|
887
|
+
],
|
|
888
|
+
"requestBody": {
|
|
889
|
+
"required": true,
|
|
890
|
+
"content": {
|
|
891
|
+
"application/json": {
|
|
892
|
+
"schema": {
|
|
893
|
+
"type": "object",
|
|
894
|
+
"properties": {
|
|
895
|
+
"phone": {
|
|
896
|
+
"type": "string"
|
|
897
|
+
},
|
|
898
|
+
"isGroup": {
|
|
899
|
+
"type": "boolean"
|
|
900
|
+
},
|
|
901
|
+
"message": {
|
|
902
|
+
"type": "string"
|
|
903
|
+
},
|
|
904
|
+
"messageId": {
|
|
905
|
+
"type": "string"
|
|
906
|
+
}
|
|
935
907
|
}
|
|
936
908
|
},
|
|
937
|
-
"
|
|
909
|
+
"examples": {
|
|
910
|
+
"Default": {
|
|
911
|
+
"value": {
|
|
912
|
+
"phone": "5521999999999",
|
|
913
|
+
"isGroup": false,
|
|
914
|
+
"message": "Reply to message",
|
|
915
|
+
"messageId": "<id_message>"
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
"/api/{session}/send-file": {
|
|
925
|
+
"post": {
|
|
926
|
+
"tags": ["Messages"],
|
|
927
|
+
"description": "",
|
|
928
|
+
"parameters": [
|
|
929
|
+
{
|
|
930
|
+
"name": "session",
|
|
931
|
+
"in": "path",
|
|
932
|
+
"required": true,
|
|
933
|
+
"schema": {
|
|
934
|
+
"type": "string",
|
|
935
|
+
"example": "NERDWHATS_AMERICA"
|
|
938
936
|
}
|
|
939
937
|
}
|
|
940
938
|
],
|
|
@@ -950,7 +948,45 @@
|
|
|
950
948
|
{
|
|
951
949
|
"bearerAuth": []
|
|
952
950
|
}
|
|
953
|
-
]
|
|
951
|
+
],
|
|
952
|
+
"requestBody": {
|
|
953
|
+
"required": true,
|
|
954
|
+
"content": {
|
|
955
|
+
"application/json": {
|
|
956
|
+
"schema": {
|
|
957
|
+
"type": "object",
|
|
958
|
+
"properties": {
|
|
959
|
+
"phone": {
|
|
960
|
+
"type": "string"
|
|
961
|
+
},
|
|
962
|
+
"isGroup": {
|
|
963
|
+
"type": "boolean"
|
|
964
|
+
},
|
|
965
|
+
"filename": {
|
|
966
|
+
"type": "string"
|
|
967
|
+
},
|
|
968
|
+
"caption": {
|
|
969
|
+
"type": "string"
|
|
970
|
+
},
|
|
971
|
+
"base64": {
|
|
972
|
+
"type": "string"
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
},
|
|
976
|
+
"examples": {
|
|
977
|
+
"Default": {
|
|
978
|
+
"value": {
|
|
979
|
+
"phone": "5521999999999",
|
|
980
|
+
"isGroup": false,
|
|
981
|
+
"filename": "file name lol",
|
|
982
|
+
"caption": "caption for my file",
|
|
983
|
+
"base64": "<base64> string"
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
}
|
|
954
990
|
}
|
|
955
991
|
},
|
|
956
992
|
"/api/{session}/send-file-base64": {
|
|
@@ -966,36 +1002,6 @@
|
|
|
966
1002
|
"type": "string",
|
|
967
1003
|
"example": "NERDWHATS_AMERICA"
|
|
968
1004
|
}
|
|
969
|
-
},
|
|
970
|
-
{
|
|
971
|
-
"name": "obj",
|
|
972
|
-
"in": "body",
|
|
973
|
-
"schema": {
|
|
974
|
-
"type": "object",
|
|
975
|
-
"properties": {
|
|
976
|
-
"phone": {
|
|
977
|
-
"type": "string",
|
|
978
|
-
"example": "5521999999999"
|
|
979
|
-
},
|
|
980
|
-
"isGroup": {
|
|
981
|
-
"type": "boolean",
|
|
982
|
-
"example": false
|
|
983
|
-
},
|
|
984
|
-
"filename": {
|
|
985
|
-
"type": "string",
|
|
986
|
-
"example": "file name lol"
|
|
987
|
-
},
|
|
988
|
-
"caption": {
|
|
989
|
-
"type": "string",
|
|
990
|
-
"example": "caption for my file"
|
|
991
|
-
},
|
|
992
|
-
"base64": {
|
|
993
|
-
"type": "string",
|
|
994
|
-
"example": "<base64> string"
|
|
995
|
-
}
|
|
996
|
-
},
|
|
997
|
-
"required": ["phone", "isGroup", "filename", "caption", "base64"]
|
|
998
|
-
}
|
|
999
1005
|
}
|
|
1000
1006
|
],
|
|
1001
1007
|
"responses": {
|
|
@@ -1010,7 +1016,45 @@
|
|
|
1010
1016
|
{
|
|
1011
1017
|
"bearerAuth": []
|
|
1012
1018
|
}
|
|
1013
|
-
]
|
|
1019
|
+
],
|
|
1020
|
+
"requestBody": {
|
|
1021
|
+
"required": true,
|
|
1022
|
+
"content": {
|
|
1023
|
+
"application/json": {
|
|
1024
|
+
"schema": {
|
|
1025
|
+
"type": "object",
|
|
1026
|
+
"properties": {
|
|
1027
|
+
"phone": {
|
|
1028
|
+
"type": "string"
|
|
1029
|
+
},
|
|
1030
|
+
"isGroup": {
|
|
1031
|
+
"type": "boolean"
|
|
1032
|
+
},
|
|
1033
|
+
"filename": {
|
|
1034
|
+
"type": "string"
|
|
1035
|
+
},
|
|
1036
|
+
"caption": {
|
|
1037
|
+
"type": "string"
|
|
1038
|
+
},
|
|
1039
|
+
"base64": {
|
|
1040
|
+
"type": "string"
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
},
|
|
1044
|
+
"examples": {
|
|
1045
|
+
"Default": {
|
|
1046
|
+
"value": {
|
|
1047
|
+
"phone": "5521999999999",
|
|
1048
|
+
"isGroup": false,
|
|
1049
|
+
"filename": "file name lol",
|
|
1050
|
+
"caption": "caption for my file",
|
|
1051
|
+
"base64": "<base64> string"
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1014
1058
|
}
|
|
1015
1059
|
},
|
|
1016
1060
|
"/api/{session}/send-voice": {
|
|
@@ -1026,31 +1070,6 @@
|
|
|
1026
1070
|
"type": "string",
|
|
1027
1071
|
"example": "NERDWHATS_AMERICA"
|
|
1028
1072
|
}
|
|
1029
|
-
},
|
|
1030
|
-
{
|
|
1031
|
-
"name": "obj",
|
|
1032
|
-
"in": "body",
|
|
1033
|
-
"schema": {
|
|
1034
|
-
"type": "object",
|
|
1035
|
-
"properties": {
|
|
1036
|
-
"phone": {
|
|
1037
|
-
"type": "string",
|
|
1038
|
-
"example": "5521999999999"
|
|
1039
|
-
},
|
|
1040
|
-
"isGroup": {
|
|
1041
|
-
"type": "boolean",
|
|
1042
|
-
"example": false
|
|
1043
|
-
},
|
|
1044
|
-
"path": {
|
|
1045
|
-
"type": "string",
|
|
1046
|
-
"example": "<path_file>"
|
|
1047
|
-
},
|
|
1048
|
-
"quotedMessageId": {
|
|
1049
|
-
"type": "undefined"
|
|
1050
|
-
}
|
|
1051
|
-
},
|
|
1052
|
-
"required": ["phone", "isGroup", "path", "quotedMessageId"]
|
|
1053
|
-
}
|
|
1054
1073
|
}
|
|
1055
1074
|
],
|
|
1056
1075
|
"responses": {
|
|
@@ -1062,7 +1081,41 @@
|
|
|
1062
1081
|
{
|
|
1063
1082
|
"bearerAuth": []
|
|
1064
1083
|
}
|
|
1065
|
-
]
|
|
1084
|
+
],
|
|
1085
|
+
"requestBody": {
|
|
1086
|
+
"required": true,
|
|
1087
|
+
"content": {
|
|
1088
|
+
"application/json": {
|
|
1089
|
+
"schema": {
|
|
1090
|
+
"type": "object",
|
|
1091
|
+
"properties": {
|
|
1092
|
+
"phone": {
|
|
1093
|
+
"type": "string"
|
|
1094
|
+
},
|
|
1095
|
+
"isGroup": {
|
|
1096
|
+
"type": "boolean"
|
|
1097
|
+
},
|
|
1098
|
+
"path": {
|
|
1099
|
+
"type": "string"
|
|
1100
|
+
},
|
|
1101
|
+
"quotedMessageId": {
|
|
1102
|
+
"type": "string"
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
},
|
|
1106
|
+
"examples": {
|
|
1107
|
+
"Default": {
|
|
1108
|
+
"value": {
|
|
1109
|
+
"phone": "5521999999999",
|
|
1110
|
+
"isGroup": false,
|
|
1111
|
+
"path": "<path_file>",
|
|
1112
|
+
"quotedMessageId": "message Id"
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1066
1119
|
}
|
|
1067
1120
|
},
|
|
1068
1121
|
"/api/{session}/send-voice-base64": {
|
|
@@ -1078,28 +1131,6 @@
|
|
|
1078
1131
|
"type": "string",
|
|
1079
1132
|
"example": "NERDWHATS_AMERICA"
|
|
1080
1133
|
}
|
|
1081
|
-
},
|
|
1082
|
-
{
|
|
1083
|
-
"name": "obj",
|
|
1084
|
-
"in": "body",
|
|
1085
|
-
"schema": {
|
|
1086
|
-
"type": "object",
|
|
1087
|
-
"properties": {
|
|
1088
|
-
"phone": {
|
|
1089
|
-
"type": "string",
|
|
1090
|
-
"example": "5521999999999"
|
|
1091
|
-
},
|
|
1092
|
-
"isGroup": {
|
|
1093
|
-
"type": "boolean",
|
|
1094
|
-
"example": false
|
|
1095
|
-
},
|
|
1096
|
-
"base64Ptt": {
|
|
1097
|
-
"type": "string",
|
|
1098
|
-
"example": "<base64_string>"
|
|
1099
|
-
}
|
|
1100
|
-
},
|
|
1101
|
-
"required": ["phone", "isGroup", "base64Ptt"]
|
|
1102
|
-
}
|
|
1103
1134
|
}
|
|
1104
1135
|
],
|
|
1105
1136
|
"responses": {
|
|
@@ -1111,7 +1142,37 @@
|
|
|
1111
1142
|
{
|
|
1112
1143
|
"bearerAuth": []
|
|
1113
1144
|
}
|
|
1114
|
-
]
|
|
1145
|
+
],
|
|
1146
|
+
"requestBody": {
|
|
1147
|
+
"required": true,
|
|
1148
|
+
"content": {
|
|
1149
|
+
"application/json": {
|
|
1150
|
+
"schema": {
|
|
1151
|
+
"type": "object",
|
|
1152
|
+
"properties": {
|
|
1153
|
+
"phone": {
|
|
1154
|
+
"type": "string"
|
|
1155
|
+
},
|
|
1156
|
+
"isGroup": {
|
|
1157
|
+
"type": "boolean"
|
|
1158
|
+
},
|
|
1159
|
+
"base64Ptt": {
|
|
1160
|
+
"type": "string"
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
},
|
|
1164
|
+
"examples": {
|
|
1165
|
+
"Default": {
|
|
1166
|
+
"value": {
|
|
1167
|
+
"phone": "5521999999999",
|
|
1168
|
+
"isGroup": false,
|
|
1169
|
+
"base64Ptt": "<base64_string>"
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1115
1176
|
}
|
|
1116
1177
|
},
|
|
1117
1178
|
"/api/{session}/send-status": {
|
|
@@ -1127,20 +1188,6 @@
|
|
|
1127
1188
|
"type": "string",
|
|
1128
1189
|
"example": "NERDWHATS_AMERICA"
|
|
1129
1190
|
}
|
|
1130
|
-
},
|
|
1131
|
-
{
|
|
1132
|
-
"name": "obj",
|
|
1133
|
-
"in": "body",
|
|
1134
|
-
"schema": {
|
|
1135
|
-
"type": "object",
|
|
1136
|
-
"properties": {
|
|
1137
|
-
"message": {
|
|
1138
|
-
"type": "string",
|
|
1139
|
-
"example": "Post text status"
|
|
1140
|
-
}
|
|
1141
|
-
},
|
|
1142
|
-
"required": ["message"]
|
|
1143
|
-
}
|
|
1144
1191
|
}
|
|
1145
1192
|
],
|
|
1146
1193
|
"responses": {
|
|
@@ -1152,7 +1199,42 @@
|
|
|
1152
1199
|
{
|
|
1153
1200
|
"bearerAuth": []
|
|
1154
1201
|
}
|
|
1155
|
-
]
|
|
1202
|
+
],
|
|
1203
|
+
"requestBody": {
|
|
1204
|
+
"required": true,
|
|
1205
|
+
"content": {
|
|
1206
|
+
"application/json": {
|
|
1207
|
+
"schema": {
|
|
1208
|
+
"type": "object",
|
|
1209
|
+
"properties": {
|
|
1210
|
+
"phone": {
|
|
1211
|
+
"type": "string"
|
|
1212
|
+
},
|
|
1213
|
+
"isGroup": {
|
|
1214
|
+
"type": "boolean"
|
|
1215
|
+
},
|
|
1216
|
+
"message": {
|
|
1217
|
+
"type": "string"
|
|
1218
|
+
},
|
|
1219
|
+
"messageId": {
|
|
1220
|
+
"type": "string"
|
|
1221
|
+
}
|
|
1222
|
+
},
|
|
1223
|
+
"required": ["phone", "isGroup", "message"]
|
|
1224
|
+
},
|
|
1225
|
+
"examples": {
|
|
1226
|
+
"Default": {
|
|
1227
|
+
"value": {
|
|
1228
|
+
"phone": "5521999999999",
|
|
1229
|
+
"isGroup": false,
|
|
1230
|
+
"message": "Reply to message",
|
|
1231
|
+
"messageId": "<id_message>"
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1156
1238
|
}
|
|
1157
1239
|
},
|
|
1158
1240
|
"/api/{session}/send-link-preview": {
|
|
@@ -1168,32 +1250,6 @@
|
|
|
1168
1250
|
"type": "string",
|
|
1169
1251
|
"example": "NERDWHATS_AMERICA"
|
|
1170
1252
|
}
|
|
1171
|
-
},
|
|
1172
|
-
{
|
|
1173
|
-
"name": "obj",
|
|
1174
|
-
"in": "body",
|
|
1175
|
-
"schema": {
|
|
1176
|
-
"type": "object",
|
|
1177
|
-
"properties": {
|
|
1178
|
-
"phone": {
|
|
1179
|
-
"type": "string",
|
|
1180
|
-
"example": "5521999999999"
|
|
1181
|
-
},
|
|
1182
|
-
"isGroup": {
|
|
1183
|
-
"type": "boolean",
|
|
1184
|
-
"example": false
|
|
1185
|
-
},
|
|
1186
|
-
"url": {
|
|
1187
|
-
"type": "string",
|
|
1188
|
-
"example": "http://www.link.com"
|
|
1189
|
-
},
|
|
1190
|
-
"caption": {
|
|
1191
|
-
"type": "string",
|
|
1192
|
-
"example": "Text for describe link"
|
|
1193
|
-
}
|
|
1194
|
-
},
|
|
1195
|
-
"required": ["phone", "isGroup", "url", "caption"]
|
|
1196
|
-
}
|
|
1197
1253
|
}
|
|
1198
1254
|
],
|
|
1199
1255
|
"responses": {
|
|
@@ -1205,7 +1261,41 @@
|
|
|
1205
1261
|
{
|
|
1206
1262
|
"bearerAuth": []
|
|
1207
1263
|
}
|
|
1208
|
-
]
|
|
1264
|
+
],
|
|
1265
|
+
"requestBody": {
|
|
1266
|
+
"required": true,
|
|
1267
|
+
"content": {
|
|
1268
|
+
"application/json": {
|
|
1269
|
+
"schema": {
|
|
1270
|
+
"type": "object",
|
|
1271
|
+
"properties": {
|
|
1272
|
+
"phone": {
|
|
1273
|
+
"type": "string"
|
|
1274
|
+
},
|
|
1275
|
+
"isGroup": {
|
|
1276
|
+
"type": "boolean"
|
|
1277
|
+
},
|
|
1278
|
+
"url": {
|
|
1279
|
+
"type": "string"
|
|
1280
|
+
},
|
|
1281
|
+
"caption": {
|
|
1282
|
+
"type": "string"
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
},
|
|
1286
|
+
"examples": {
|
|
1287
|
+
"Default": {
|
|
1288
|
+
"value": {
|
|
1289
|
+
"phone": "5521999999999",
|
|
1290
|
+
"isGroup": false,
|
|
1291
|
+
"url": "http://www.link.com",
|
|
1292
|
+
"caption": "Text for describe link"
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1209
1299
|
}
|
|
1210
1300
|
},
|
|
1211
1301
|
"/api/{session}/send-location": {
|
|
@@ -1221,40 +1311,6 @@
|
|
|
1221
1311
|
"type": "string",
|
|
1222
1312
|
"example": "NERDWHATS_AMERICA"
|
|
1223
1313
|
}
|
|
1224
|
-
},
|
|
1225
|
-
{
|
|
1226
|
-
"name": "obj",
|
|
1227
|
-
"in": "body",
|
|
1228
|
-
"schema": {
|
|
1229
|
-
"type": "object",
|
|
1230
|
-
"properties": {
|
|
1231
|
-
"phone": {
|
|
1232
|
-
"type": "string",
|
|
1233
|
-
"example": "5521999999999"
|
|
1234
|
-
},
|
|
1235
|
-
"isGroup": {
|
|
1236
|
-
"type": "boolean",
|
|
1237
|
-
"example": false
|
|
1238
|
-
},
|
|
1239
|
-
"lat": {
|
|
1240
|
-
"type": "string",
|
|
1241
|
-
"example": "-89898322"
|
|
1242
|
-
},
|
|
1243
|
-
"lng": {
|
|
1244
|
-
"type": "string",
|
|
1245
|
-
"example": "-545454"
|
|
1246
|
-
},
|
|
1247
|
-
"title": {
|
|
1248
|
-
"type": "string",
|
|
1249
|
-
"example": "Rio de Janeiro"
|
|
1250
|
-
},
|
|
1251
|
-
"address": {
|
|
1252
|
-
"type": "string",
|
|
1253
|
-
"example": "Av. N. S. de Copacabana, 25, Copacabana"
|
|
1254
|
-
}
|
|
1255
|
-
},
|
|
1256
|
-
"required": ["phone", "isGroup", "lat", "lng", "title", "address"]
|
|
1257
|
-
}
|
|
1258
1314
|
}
|
|
1259
1315
|
],
|
|
1260
1316
|
"responses": {
|
|
@@ -1266,7 +1322,49 @@
|
|
|
1266
1322
|
{
|
|
1267
1323
|
"bearerAuth": []
|
|
1268
1324
|
}
|
|
1269
|
-
]
|
|
1325
|
+
],
|
|
1326
|
+
"requestBody": {
|
|
1327
|
+
"required": true,
|
|
1328
|
+
"content": {
|
|
1329
|
+
"application/json": {
|
|
1330
|
+
"schema": {
|
|
1331
|
+
"type": "object",
|
|
1332
|
+
"properties": {
|
|
1333
|
+
"phone": {
|
|
1334
|
+
"type": "string"
|
|
1335
|
+
},
|
|
1336
|
+
"isGroup": {
|
|
1337
|
+
"type": "boolean"
|
|
1338
|
+
},
|
|
1339
|
+
"lat": {
|
|
1340
|
+
"type": "string"
|
|
1341
|
+
},
|
|
1342
|
+
"lng": {
|
|
1343
|
+
"type": "string"
|
|
1344
|
+
},
|
|
1345
|
+
"title": {
|
|
1346
|
+
"type": "string"
|
|
1347
|
+
},
|
|
1348
|
+
"address": {
|
|
1349
|
+
"type": "string"
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
},
|
|
1353
|
+
"examples": {
|
|
1354
|
+
"Default": {
|
|
1355
|
+
"value": {
|
|
1356
|
+
"phone": "5521999999999",
|
|
1357
|
+
"isGroup": false,
|
|
1358
|
+
"lat": "-89898322",
|
|
1359
|
+
"lng": "-545454",
|
|
1360
|
+
"title": "Rio de Janeiro",
|
|
1361
|
+
"address": "Av. N. S. de Copacabana, 25, Copacabana"
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1270
1368
|
}
|
|
1271
1369
|
},
|
|
1272
1370
|
"/api/{session}/send-mentioned": {
|
|
@@ -1282,35 +1380,6 @@
|
|
|
1282
1380
|
"type": "string",
|
|
1283
1381
|
"example": "NERDWHATS_AMERICA"
|
|
1284
1382
|
}
|
|
1285
|
-
},
|
|
1286
|
-
{
|
|
1287
|
-
"name": "obj",
|
|
1288
|
-
"in": "body",
|
|
1289
|
-
"schema": {
|
|
1290
|
-
"type": "object",
|
|
1291
|
-
"properties": {
|
|
1292
|
-
"phone": {
|
|
1293
|
-
"type": "string",
|
|
1294
|
-
"example": "5521999999999"
|
|
1295
|
-
},
|
|
1296
|
-
"isGroup": {
|
|
1297
|
-
"type": "boolean",
|
|
1298
|
-
"example": true
|
|
1299
|
-
},
|
|
1300
|
-
"message": {
|
|
1301
|
-
"type": "string",
|
|
1302
|
-
"example": "Your text message"
|
|
1303
|
-
},
|
|
1304
|
-
"mentioned": {
|
|
1305
|
-
"type": "array",
|
|
1306
|
-
"example": ["@556593077171@c.us"],
|
|
1307
|
-
"items": {
|
|
1308
|
-
"type": "string"
|
|
1309
|
-
}
|
|
1310
|
-
}
|
|
1311
|
-
},
|
|
1312
|
-
"required": ["phone", "isGroup", "message", "mentioned"]
|
|
1313
|
-
}
|
|
1314
1383
|
}
|
|
1315
1384
|
],
|
|
1316
1385
|
"responses": {
|
|
@@ -1325,7 +1394,45 @@
|
|
|
1325
1394
|
{
|
|
1326
1395
|
"bearerAuth": []
|
|
1327
1396
|
}
|
|
1328
|
-
]
|
|
1397
|
+
],
|
|
1398
|
+
"requestBody": {
|
|
1399
|
+
"required": true,
|
|
1400
|
+
"content": {
|
|
1401
|
+
"application/json": {
|
|
1402
|
+
"schema": {
|
|
1403
|
+
"type": "object",
|
|
1404
|
+
"properties": {
|
|
1405
|
+
"phone": {
|
|
1406
|
+
"type": "string"
|
|
1407
|
+
},
|
|
1408
|
+
"isGroup": {
|
|
1409
|
+
"type": "boolean"
|
|
1410
|
+
},
|
|
1411
|
+
"message": {
|
|
1412
|
+
"type": "string"
|
|
1413
|
+
},
|
|
1414
|
+
"mentioned": {
|
|
1415
|
+
"type": "array",
|
|
1416
|
+
"items": {
|
|
1417
|
+
"type": "string"
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
},
|
|
1421
|
+
"required": ["phone", "message", "mentioned"]
|
|
1422
|
+
},
|
|
1423
|
+
"examples": {
|
|
1424
|
+
"Default": {
|
|
1425
|
+
"value": {
|
|
1426
|
+
"phone": "5521999999999",
|
|
1427
|
+
"isGroup": true,
|
|
1428
|
+
"message": "Your text message",
|
|
1429
|
+
"mentioned": ["@556593077171@c.us"]
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1329
1436
|
}
|
|
1330
1437
|
},
|
|
1331
1438
|
"/api/{session}/send-buttons": {
|
|
@@ -1484,24 +1591,6 @@
|
|
|
1484
1591
|
"example": "NERDWHATS_AMERICA"
|
|
1485
1592
|
}
|
|
1486
1593
|
},
|
|
1487
|
-
{
|
|
1488
|
-
"name": "obj",
|
|
1489
|
-
"in": "body",
|
|
1490
|
-
"schema": {
|
|
1491
|
-
"type": "object",
|
|
1492
|
-
"properties": {
|
|
1493
|
-
"groupId": {
|
|
1494
|
-
"type": "string",
|
|
1495
|
-
"example": "<groupId>"
|
|
1496
|
-
},
|
|
1497
|
-
"path": {
|
|
1498
|
-
"type": "string",
|
|
1499
|
-
"example": "path_of_your_file"
|
|
1500
|
-
}
|
|
1501
|
-
},
|
|
1502
|
-
"required": ["groupId", "path"]
|
|
1503
|
-
}
|
|
1504
|
-
},
|
|
1505
1594
|
{
|
|
1506
1595
|
"name": "groupId",
|
|
1507
1596
|
"schema": {
|
|
@@ -1511,12 +1600,40 @@
|
|
|
1511
1600
|
"in": "query"
|
|
1512
1601
|
}
|
|
1513
1602
|
],
|
|
1514
|
-
"responses": {
|
|
1603
|
+
"responses": {
|
|
1604
|
+
"200": {
|
|
1605
|
+
"description": "OK"
|
|
1606
|
+
},
|
|
1607
|
+
"400": {
|
|
1608
|
+
"description": "Bad Request"
|
|
1609
|
+
},
|
|
1610
|
+
"500": {
|
|
1611
|
+
"description": "Internal Server Error"
|
|
1612
|
+
}
|
|
1613
|
+
},
|
|
1515
1614
|
"security": [
|
|
1516
1615
|
{
|
|
1517
1616
|
"bearerAuth": []
|
|
1518
1617
|
}
|
|
1519
1618
|
],
|
|
1619
|
+
"requestBody": {
|
|
1620
|
+
"required": true,
|
|
1621
|
+
"content": {
|
|
1622
|
+
"application/json": {
|
|
1623
|
+
"schema": {
|
|
1624
|
+
"type": "object",
|
|
1625
|
+
"properties": {
|
|
1626
|
+
"$groupId": {
|
|
1627
|
+
"type": "string"
|
|
1628
|
+
},
|
|
1629
|
+
"$path": {
|
|
1630
|
+
"type": "string"
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
},
|
|
1520
1637
|
"deprecated": true
|
|
1521
1638
|
}
|
|
1522
1639
|
},
|
|
@@ -1541,20 +1658,6 @@
|
|
|
1541
1658
|
"schema": {
|
|
1542
1659
|
"type": "string"
|
|
1543
1660
|
}
|
|
1544
|
-
},
|
|
1545
|
-
{
|
|
1546
|
-
"name": "obj",
|
|
1547
|
-
"in": "body",
|
|
1548
|
-
"schema": {
|
|
1549
|
-
"type": "object",
|
|
1550
|
-
"properties": {
|
|
1551
|
-
"groupId": {
|
|
1552
|
-
"type": "string",
|
|
1553
|
-
"example": "<groupId>"
|
|
1554
|
-
}
|
|
1555
|
-
},
|
|
1556
|
-
"required": ["groupId"]
|
|
1557
|
-
}
|
|
1558
1661
|
}
|
|
1559
1662
|
],
|
|
1560
1663
|
"responses": {
|
|
@@ -1569,7 +1672,30 @@
|
|
|
1569
1672
|
{
|
|
1570
1673
|
"bearerAuth": []
|
|
1571
1674
|
}
|
|
1572
|
-
]
|
|
1675
|
+
],
|
|
1676
|
+
"requestBody": {
|
|
1677
|
+
"required": true,
|
|
1678
|
+
"content": {
|
|
1679
|
+
"application/json": {
|
|
1680
|
+
"schema": {
|
|
1681
|
+
"type": "object",
|
|
1682
|
+
"properties": {
|
|
1683
|
+
"groupId": {
|
|
1684
|
+
"type": "string"
|
|
1685
|
+
}
|
|
1686
|
+
},
|
|
1687
|
+
"required": ["groupId"]
|
|
1688
|
+
},
|
|
1689
|
+
"examples": {
|
|
1690
|
+
"Default": {
|
|
1691
|
+
"value": {
|
|
1692
|
+
"groupId": "<groupId>"
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1573
1699
|
}
|
|
1574
1700
|
},
|
|
1575
1701
|
"/api/{session}/group-admins/{groupId}": {
|
|
@@ -1593,20 +1719,6 @@
|
|
|
1593
1719
|
"schema": {
|
|
1594
1720
|
"type": "string"
|
|
1595
1721
|
}
|
|
1596
|
-
},
|
|
1597
|
-
{
|
|
1598
|
-
"name": "obj",
|
|
1599
|
-
"in": "body",
|
|
1600
|
-
"schema": {
|
|
1601
|
-
"type": "object",
|
|
1602
|
-
"properties": {
|
|
1603
|
-
"groupId": {
|
|
1604
|
-
"type": "string",
|
|
1605
|
-
"example": "<groupId>"
|
|
1606
|
-
}
|
|
1607
|
-
},
|
|
1608
|
-
"required": ["groupId"]
|
|
1609
|
-
}
|
|
1610
1722
|
}
|
|
1611
1723
|
],
|
|
1612
1724
|
"responses": {
|
|
@@ -1621,7 +1733,30 @@
|
|
|
1621
1733
|
{
|
|
1622
1734
|
"bearerAuth": []
|
|
1623
1735
|
}
|
|
1624
|
-
]
|
|
1736
|
+
],
|
|
1737
|
+
"requestBody": {
|
|
1738
|
+
"required": true,
|
|
1739
|
+
"content": {
|
|
1740
|
+
"application/json": {
|
|
1741
|
+
"schema": {
|
|
1742
|
+
"type": "object",
|
|
1743
|
+
"properties": {
|
|
1744
|
+
"groupId": {
|
|
1745
|
+
"type": "string"
|
|
1746
|
+
}
|
|
1747
|
+
},
|
|
1748
|
+
"required": ["groupId"]
|
|
1749
|
+
},
|
|
1750
|
+
"examples": {
|
|
1751
|
+
"Default": {
|
|
1752
|
+
"value": {
|
|
1753
|
+
"groupId": "<groupId>"
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1625
1760
|
}
|
|
1626
1761
|
},
|
|
1627
1762
|
"/api/{session}/group-invite-link/{groupId}": {
|
|
@@ -1645,20 +1780,6 @@
|
|
|
1645
1780
|
"schema": {
|
|
1646
1781
|
"type": "string"
|
|
1647
1782
|
}
|
|
1648
|
-
},
|
|
1649
|
-
{
|
|
1650
|
-
"name": "obj",
|
|
1651
|
-
"in": "body",
|
|
1652
|
-
"schema": {
|
|
1653
|
-
"type": "object",
|
|
1654
|
-
"properties": {
|
|
1655
|
-
"groupId": {
|
|
1656
|
-
"type": "string",
|
|
1657
|
-
"example": "<groupId>"
|
|
1658
|
-
}
|
|
1659
|
-
},
|
|
1660
|
-
"required": ["groupId"]
|
|
1661
|
-
}
|
|
1662
1783
|
}
|
|
1663
1784
|
],
|
|
1664
1785
|
"responses": {
|
|
@@ -1673,7 +1794,22 @@
|
|
|
1673
1794
|
{
|
|
1674
1795
|
"bearerAuth": []
|
|
1675
1796
|
}
|
|
1676
|
-
]
|
|
1797
|
+
],
|
|
1798
|
+
"requestBody": {
|
|
1799
|
+
"required": true,
|
|
1800
|
+
"content": {
|
|
1801
|
+
"application/json": {
|
|
1802
|
+
"schema": {
|
|
1803
|
+
"type": "object",
|
|
1804
|
+
"properties": {
|
|
1805
|
+
"groupId": {
|
|
1806
|
+
"type": "string"
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1677
1813
|
}
|
|
1678
1814
|
},
|
|
1679
1815
|
"/api/{session}/group-revoke-link/{groupId}": {
|
|
@@ -1697,20 +1833,6 @@
|
|
|
1697
1833
|
"schema": {
|
|
1698
1834
|
"type": "string"
|
|
1699
1835
|
}
|
|
1700
|
-
},
|
|
1701
|
-
{
|
|
1702
|
-
"name": "obj",
|
|
1703
|
-
"in": "body",
|
|
1704
|
-
"schema": {
|
|
1705
|
-
"type": "object",
|
|
1706
|
-
"properties": {
|
|
1707
|
-
"groupId": {
|
|
1708
|
-
"type": "string",
|
|
1709
|
-
"example": "<groupId>"
|
|
1710
|
-
}
|
|
1711
|
-
},
|
|
1712
|
-
"required": ["groupId"]
|
|
1713
|
-
}
|
|
1714
1836
|
}
|
|
1715
1837
|
],
|
|
1716
1838
|
"responses": {
|
|
@@ -1725,7 +1847,22 @@
|
|
|
1725
1847
|
{
|
|
1726
1848
|
"bearerAuth": []
|
|
1727
1849
|
}
|
|
1728
|
-
]
|
|
1850
|
+
],
|
|
1851
|
+
"requestBody": {
|
|
1852
|
+
"required": true,
|
|
1853
|
+
"content": {
|
|
1854
|
+
"application/json": {
|
|
1855
|
+
"schema": {
|
|
1856
|
+
"type": "object",
|
|
1857
|
+
"properties": {
|
|
1858
|
+
"$groupId": {
|
|
1859
|
+
"type": "string"
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1729
1866
|
}
|
|
1730
1867
|
},
|
|
1731
1868
|
"/api/{session}/group-members-ids/{groupId}": {
|
|
@@ -1780,42 +1917,51 @@
|
|
|
1780
1917
|
"type": "string",
|
|
1781
1918
|
"example": "NERDWHATS_AMERICA"
|
|
1782
1919
|
}
|
|
1920
|
+
}
|
|
1921
|
+
],
|
|
1922
|
+
"responses": {
|
|
1923
|
+
"201": {
|
|
1924
|
+
"description": "Created"
|
|
1783
1925
|
},
|
|
1926
|
+
"500": {
|
|
1927
|
+
"description": "Internal Server Error"
|
|
1928
|
+
}
|
|
1929
|
+
},
|
|
1930
|
+
"security": [
|
|
1784
1931
|
{
|
|
1785
|
-
"
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1932
|
+
"bearerAuth": []
|
|
1933
|
+
}
|
|
1934
|
+
],
|
|
1935
|
+
"requestBody": {
|
|
1936
|
+
"required": true,
|
|
1937
|
+
"content": {
|
|
1938
|
+
"application/json": {
|
|
1939
|
+
"schema": {
|
|
1940
|
+
"type": "object",
|
|
1941
|
+
"properties": {
|
|
1942
|
+
"participants": {
|
|
1943
|
+
"type": "array",
|
|
1944
|
+
"items": {
|
|
1945
|
+
"type": "string"
|
|
1946
|
+
}
|
|
1947
|
+
},
|
|
1948
|
+
"name": {
|
|
1794
1949
|
"type": "string"
|
|
1795
1950
|
}
|
|
1796
|
-
},
|
|
1797
|
-
"
|
|
1798
|
-
|
|
1799
|
-
|
|
1951
|
+
},
|
|
1952
|
+
"required": ["participants", "name"]
|
|
1953
|
+
},
|
|
1954
|
+
"examples": {
|
|
1955
|
+
"Default": {
|
|
1956
|
+
"value": {
|
|
1957
|
+
"participants": ["5521999999999"],
|
|
1958
|
+
"name": "Group name"
|
|
1959
|
+
}
|
|
1800
1960
|
}
|
|
1801
|
-
}
|
|
1802
|
-
"required": ["participants", "name"]
|
|
1961
|
+
}
|
|
1803
1962
|
}
|
|
1804
1963
|
}
|
|
1805
|
-
|
|
1806
|
-
"responses": {
|
|
1807
|
-
"201": {
|
|
1808
|
-
"description": "Created"
|
|
1809
|
-
},
|
|
1810
|
-
"500": {
|
|
1811
|
-
"description": "Internal Server Error"
|
|
1812
|
-
}
|
|
1813
|
-
},
|
|
1814
|
-
"security": [
|
|
1815
|
-
{
|
|
1816
|
-
"bearerAuth": []
|
|
1817
|
-
}
|
|
1818
|
-
]
|
|
1964
|
+
}
|
|
1819
1965
|
}
|
|
1820
1966
|
},
|
|
1821
1967
|
"/api/{session}/leave-group": {
|
|
@@ -1831,20 +1977,6 @@
|
|
|
1831
1977
|
"type": "string",
|
|
1832
1978
|
"example": "NERDWHATS_AMERICA"
|
|
1833
1979
|
}
|
|
1834
|
-
},
|
|
1835
|
-
{
|
|
1836
|
-
"name": "obj",
|
|
1837
|
-
"in": "body",
|
|
1838
|
-
"schema": {
|
|
1839
|
-
"type": "object",
|
|
1840
|
-
"properties": {
|
|
1841
|
-
"groupId": {
|
|
1842
|
-
"type": "string",
|
|
1843
|
-
"example": "<groupId>"
|
|
1844
|
-
}
|
|
1845
|
-
},
|
|
1846
|
-
"required": ["groupId"]
|
|
1847
|
-
}
|
|
1848
1980
|
}
|
|
1849
1981
|
],
|
|
1850
1982
|
"responses": {
|
|
@@ -1859,7 +1991,23 @@
|
|
|
1859
1991
|
{
|
|
1860
1992
|
"bearerAuth": []
|
|
1861
1993
|
}
|
|
1862
|
-
]
|
|
1994
|
+
],
|
|
1995
|
+
"requestBody": {
|
|
1996
|
+
"required": true,
|
|
1997
|
+
"content": {
|
|
1998
|
+
"application/json": {
|
|
1999
|
+
"schema": {
|
|
2000
|
+
"type": "object",
|
|
2001
|
+
"properties": {
|
|
2002
|
+
"groupId": {
|
|
2003
|
+
"type": "string"
|
|
2004
|
+
}
|
|
2005
|
+
},
|
|
2006
|
+
"required": ["groupId"]
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
1863
2011
|
}
|
|
1864
2012
|
},
|
|
1865
2013
|
"/api/{session}/join-code": {
|
|
@@ -1875,20 +2023,6 @@
|
|
|
1875
2023
|
"type": "string",
|
|
1876
2024
|
"example": "NERDWHATS_AMERICA"
|
|
1877
2025
|
}
|
|
1878
|
-
},
|
|
1879
|
-
{
|
|
1880
|
-
"name": "obj",
|
|
1881
|
-
"in": "body",
|
|
1882
|
-
"schema": {
|
|
1883
|
-
"type": "object",
|
|
1884
|
-
"properties": {
|
|
1885
|
-
"inviteCode": {
|
|
1886
|
-
"type": "string",
|
|
1887
|
-
"example": "5644444"
|
|
1888
|
-
}
|
|
1889
|
-
},
|
|
1890
|
-
"required": ["inviteCode"]
|
|
1891
|
-
}
|
|
1892
2026
|
}
|
|
1893
2027
|
],
|
|
1894
2028
|
"responses": {
|
|
@@ -1906,7 +2040,30 @@
|
|
|
1906
2040
|
{
|
|
1907
2041
|
"bearerAuth": []
|
|
1908
2042
|
}
|
|
1909
|
-
]
|
|
2043
|
+
],
|
|
2044
|
+
"requestBody": {
|
|
2045
|
+
"required": true,
|
|
2046
|
+
"content": {
|
|
2047
|
+
"application/json": {
|
|
2048
|
+
"schema": {
|
|
2049
|
+
"type": "object",
|
|
2050
|
+
"properties": {
|
|
2051
|
+
"inviteCode": {
|
|
2052
|
+
"type": "string"
|
|
2053
|
+
}
|
|
2054
|
+
},
|
|
2055
|
+
"required": ["inviteCode"]
|
|
2056
|
+
},
|
|
2057
|
+
"examples": {
|
|
2058
|
+
"Default": {
|
|
2059
|
+
"value": {
|
|
2060
|
+
"inviteCode": "5644444"
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
1910
2067
|
}
|
|
1911
2068
|
},
|
|
1912
2069
|
"/api/{session}/add-participant-group": {
|
|
@@ -1922,24 +2079,6 @@
|
|
|
1922
2079
|
"type": "string",
|
|
1923
2080
|
"example": "NERDWHATS_AMERICA"
|
|
1924
2081
|
}
|
|
1925
|
-
},
|
|
1926
|
-
{
|
|
1927
|
-
"name": "obj",
|
|
1928
|
-
"in": "body",
|
|
1929
|
-
"schema": {
|
|
1930
|
-
"type": "object",
|
|
1931
|
-
"properties": {
|
|
1932
|
-
"groupId": {
|
|
1933
|
-
"type": "string",
|
|
1934
|
-
"example": "<groupId>"
|
|
1935
|
-
},
|
|
1936
|
-
"phone": {
|
|
1937
|
-
"type": "string",
|
|
1938
|
-
"example": "5521999999999"
|
|
1939
|
-
}
|
|
1940
|
-
},
|
|
1941
|
-
"required": ["groupId", "phone"]
|
|
1942
|
-
}
|
|
1943
2082
|
}
|
|
1944
2083
|
],
|
|
1945
2084
|
"responses": {
|
|
@@ -1954,7 +2093,34 @@
|
|
|
1954
2093
|
{
|
|
1955
2094
|
"bearerAuth": []
|
|
1956
2095
|
}
|
|
1957
|
-
]
|
|
2096
|
+
],
|
|
2097
|
+
"requestBody": {
|
|
2098
|
+
"required": true,
|
|
2099
|
+
"content": {
|
|
2100
|
+
"application/json": {
|
|
2101
|
+
"schema": {
|
|
2102
|
+
"type": "object",
|
|
2103
|
+
"properties": {
|
|
2104
|
+
"groupId": {
|
|
2105
|
+
"type": "string"
|
|
2106
|
+
},
|
|
2107
|
+
"phone": {
|
|
2108
|
+
"type": "string"
|
|
2109
|
+
}
|
|
2110
|
+
},
|
|
2111
|
+
"required": ["groupId", "phone"]
|
|
2112
|
+
},
|
|
2113
|
+
"examples": {
|
|
2114
|
+
"Default": {
|
|
2115
|
+
"value": {
|
|
2116
|
+
"groupId": "<groupId>",
|
|
2117
|
+
"phone": "5521999999999"
|
|
2118
|
+
}
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
1958
2124
|
}
|
|
1959
2125
|
},
|
|
1960
2126
|
"/api/{session}/remove-participant-group": {
|
|
@@ -1970,24 +2136,6 @@
|
|
|
1970
2136
|
"type": "string",
|
|
1971
2137
|
"example": "NERDWHATS_AMERICA"
|
|
1972
2138
|
}
|
|
1973
|
-
},
|
|
1974
|
-
{
|
|
1975
|
-
"name": "obj",
|
|
1976
|
-
"in": "body",
|
|
1977
|
-
"schema": {
|
|
1978
|
-
"type": "object",
|
|
1979
|
-
"properties": {
|
|
1980
|
-
"groupId": {
|
|
1981
|
-
"type": "string",
|
|
1982
|
-
"example": "<groupId>"
|
|
1983
|
-
},
|
|
1984
|
-
"phone": {
|
|
1985
|
-
"type": "string",
|
|
1986
|
-
"example": "5521999999999"
|
|
1987
|
-
}
|
|
1988
|
-
},
|
|
1989
|
-
"required": ["groupId", "phone"]
|
|
1990
|
-
}
|
|
1991
2139
|
}
|
|
1992
2140
|
],
|
|
1993
2141
|
"responses": {
|
|
@@ -2002,7 +2150,34 @@
|
|
|
2002
2150
|
{
|
|
2003
2151
|
"bearerAuth": []
|
|
2004
2152
|
}
|
|
2005
|
-
]
|
|
2153
|
+
],
|
|
2154
|
+
"requestBody": {
|
|
2155
|
+
"required": true,
|
|
2156
|
+
"content": {
|
|
2157
|
+
"application/json": {
|
|
2158
|
+
"schema": {
|
|
2159
|
+
"type": "object",
|
|
2160
|
+
"properties": {
|
|
2161
|
+
"groupId": {
|
|
2162
|
+
"type": "string"
|
|
2163
|
+
},
|
|
2164
|
+
"phone": {
|
|
2165
|
+
"type": "string"
|
|
2166
|
+
}
|
|
2167
|
+
},
|
|
2168
|
+
"required": ["groupId", "phone"]
|
|
2169
|
+
},
|
|
2170
|
+
"examples": {
|
|
2171
|
+
"Default": {
|
|
2172
|
+
"value": {
|
|
2173
|
+
"groupId": "<groupId>",
|
|
2174
|
+
"phone": "5521999999999"
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
2006
2181
|
}
|
|
2007
2182
|
},
|
|
2008
2183
|
"/api/{session}/promote-participant-group": {
|
|
@@ -2018,24 +2193,6 @@
|
|
|
2018
2193
|
"type": "string",
|
|
2019
2194
|
"example": "NERDWHATS_AMERICA"
|
|
2020
2195
|
}
|
|
2021
|
-
},
|
|
2022
|
-
{
|
|
2023
|
-
"name": "obj",
|
|
2024
|
-
"in": "body",
|
|
2025
|
-
"schema": {
|
|
2026
|
-
"type": "object",
|
|
2027
|
-
"properties": {
|
|
2028
|
-
"groupId": {
|
|
2029
|
-
"type": "string",
|
|
2030
|
-
"example": "<groupId>"
|
|
2031
|
-
},
|
|
2032
|
-
"phone": {
|
|
2033
|
-
"type": "string",
|
|
2034
|
-
"example": "5521999999999"
|
|
2035
|
-
}
|
|
2036
|
-
},
|
|
2037
|
-
"required": ["groupId", "phone"]
|
|
2038
|
-
}
|
|
2039
2196
|
}
|
|
2040
2197
|
],
|
|
2041
2198
|
"responses": {
|
|
@@ -2050,7 +2207,34 @@
|
|
|
2050
2207
|
{
|
|
2051
2208
|
"bearerAuth": []
|
|
2052
2209
|
}
|
|
2053
|
-
]
|
|
2210
|
+
],
|
|
2211
|
+
"requestBody": {
|
|
2212
|
+
"required": true,
|
|
2213
|
+
"content": {
|
|
2214
|
+
"application/json": {
|
|
2215
|
+
"schema": {
|
|
2216
|
+
"type": "object",
|
|
2217
|
+
"properties": {
|
|
2218
|
+
"groupId": {
|
|
2219
|
+
"type": "string"
|
|
2220
|
+
},
|
|
2221
|
+
"phone": {
|
|
2222
|
+
"type": "string"
|
|
2223
|
+
}
|
|
2224
|
+
},
|
|
2225
|
+
"required": ["groupId", "phone"]
|
|
2226
|
+
},
|
|
2227
|
+
"examples": {
|
|
2228
|
+
"Default": {
|
|
2229
|
+
"value": {
|
|
2230
|
+
"groupId": "<groupId>",
|
|
2231
|
+
"phone": "5521999999999"
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2054
2238
|
}
|
|
2055
2239
|
},
|
|
2056
2240
|
"/api/{session}/demote-participant-group": {
|
|
@@ -2066,24 +2250,6 @@
|
|
|
2066
2250
|
"type": "string",
|
|
2067
2251
|
"example": "NERDWHATS_AMERICA"
|
|
2068
2252
|
}
|
|
2069
|
-
},
|
|
2070
|
-
{
|
|
2071
|
-
"name": "obj",
|
|
2072
|
-
"in": "body",
|
|
2073
|
-
"schema": {
|
|
2074
|
-
"type": "object",
|
|
2075
|
-
"properties": {
|
|
2076
|
-
"groupId": {
|
|
2077
|
-
"type": "string",
|
|
2078
|
-
"example": "<groupId>"
|
|
2079
|
-
},
|
|
2080
|
-
"phone": {
|
|
2081
|
-
"type": "string",
|
|
2082
|
-
"example": "5521999999999"
|
|
2083
|
-
}
|
|
2084
|
-
},
|
|
2085
|
-
"required": ["groupId", "phone"]
|
|
2086
|
-
}
|
|
2087
2253
|
}
|
|
2088
2254
|
],
|
|
2089
2255
|
"responses": {
|
|
@@ -2098,7 +2264,34 @@
|
|
|
2098
2264
|
{
|
|
2099
2265
|
"bearerAuth": []
|
|
2100
2266
|
}
|
|
2101
|
-
]
|
|
2267
|
+
],
|
|
2268
|
+
"requestBody": {
|
|
2269
|
+
"required": true,
|
|
2270
|
+
"content": {
|
|
2271
|
+
"application/json": {
|
|
2272
|
+
"schema": {
|
|
2273
|
+
"type": "object",
|
|
2274
|
+
"properties": {
|
|
2275
|
+
"groupId": {
|
|
2276
|
+
"type": "string"
|
|
2277
|
+
},
|
|
2278
|
+
"phone": {
|
|
2279
|
+
"type": "string"
|
|
2280
|
+
}
|
|
2281
|
+
},
|
|
2282
|
+
"required": ["groupId", "phone"]
|
|
2283
|
+
},
|
|
2284
|
+
"examples": {
|
|
2285
|
+
"Default": {
|
|
2286
|
+
"value": {
|
|
2287
|
+
"groupId": "<groupId>",
|
|
2288
|
+
"phone": "5521999999999"
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2102
2295
|
}
|
|
2103
2296
|
},
|
|
2104
2297
|
"/api/{session}/group-info-from-invite-link": {
|
|
@@ -2114,20 +2307,6 @@
|
|
|
2114
2307
|
"type": "string",
|
|
2115
2308
|
"example": "NERDWHATS_AMERICA"
|
|
2116
2309
|
}
|
|
2117
|
-
},
|
|
2118
|
-
{
|
|
2119
|
-
"name": "obj",
|
|
2120
|
-
"in": "body",
|
|
2121
|
-
"schema": {
|
|
2122
|
-
"type": "object",
|
|
2123
|
-
"properties": {
|
|
2124
|
-
"invitecode": {
|
|
2125
|
-
"type": "string",
|
|
2126
|
-
"example": "<groupId>"
|
|
2127
|
-
}
|
|
2128
|
-
},
|
|
2129
|
-
"required": ["invitecode"]
|
|
2130
|
-
}
|
|
2131
2310
|
}
|
|
2132
2311
|
],
|
|
2133
2312
|
"responses": {
|
|
@@ -2142,7 +2321,22 @@
|
|
|
2142
2321
|
{
|
|
2143
2322
|
"bearerAuth": []
|
|
2144
2323
|
}
|
|
2145
|
-
]
|
|
2324
|
+
],
|
|
2325
|
+
"requestBody": {
|
|
2326
|
+
"required": true,
|
|
2327
|
+
"content": {
|
|
2328
|
+
"application/json": {
|
|
2329
|
+
"schema": {
|
|
2330
|
+
"type": "object",
|
|
2331
|
+
"properties": {
|
|
2332
|
+
"$invitecode": {
|
|
2333
|
+
"type": "string"
|
|
2334
|
+
}
|
|
2335
|
+
}
|
|
2336
|
+
}
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2146
2340
|
}
|
|
2147
2341
|
},
|
|
2148
2342
|
"/api/{session}/group-description": {
|
|
@@ -2158,24 +2352,6 @@
|
|
|
2158
2352
|
"type": "string",
|
|
2159
2353
|
"example": "NERDWHATS_AMERICA"
|
|
2160
2354
|
}
|
|
2161
|
-
},
|
|
2162
|
-
{
|
|
2163
|
-
"name": "obj",
|
|
2164
|
-
"in": "body",
|
|
2165
|
-
"schema": {
|
|
2166
|
-
"type": "object",
|
|
2167
|
-
"properties": {
|
|
2168
|
-
"groupId": {
|
|
2169
|
-
"type": "string",
|
|
2170
|
-
"example": "<groupId>"
|
|
2171
|
-
},
|
|
2172
|
-
"description": {
|
|
2173
|
-
"type": "string",
|
|
2174
|
-
"example": "Desription for your group"
|
|
2175
|
-
}
|
|
2176
|
-
},
|
|
2177
|
-
"required": ["groupId", "description"]
|
|
2178
|
-
}
|
|
2179
2355
|
}
|
|
2180
2356
|
],
|
|
2181
2357
|
"responses": {
|
|
@@ -2190,7 +2366,25 @@
|
|
|
2190
2366
|
{
|
|
2191
2367
|
"bearerAuth": []
|
|
2192
2368
|
}
|
|
2193
|
-
]
|
|
2369
|
+
],
|
|
2370
|
+
"requestBody": {
|
|
2371
|
+
"required": true,
|
|
2372
|
+
"content": {
|
|
2373
|
+
"application/json": {
|
|
2374
|
+
"schema": {
|
|
2375
|
+
"type": "object",
|
|
2376
|
+
"properties": {
|
|
2377
|
+
"$groupId": {
|
|
2378
|
+
"type": "string"
|
|
2379
|
+
},
|
|
2380
|
+
"$description": {
|
|
2381
|
+
"type": "string"
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2194
2388
|
}
|
|
2195
2389
|
},
|
|
2196
2390
|
"/api/{session}/group-property": {
|
|
@@ -2206,28 +2400,6 @@
|
|
|
2206
2400
|
"type": "string",
|
|
2207
2401
|
"example": "NERDWHATS_AMERICA"
|
|
2208
2402
|
}
|
|
2209
|
-
},
|
|
2210
|
-
{
|
|
2211
|
-
"name": "obj",
|
|
2212
|
-
"in": "body",
|
|
2213
|
-
"schema": {
|
|
2214
|
-
"type": "object",
|
|
2215
|
-
"properties": {
|
|
2216
|
-
"groupId": {
|
|
2217
|
-
"type": "string",
|
|
2218
|
-
"example": "<groupId>"
|
|
2219
|
-
},
|
|
2220
|
-
"property": {
|
|
2221
|
-
"type": "string",
|
|
2222
|
-
"example": "announcement"
|
|
2223
|
-
},
|
|
2224
|
-
"value": {
|
|
2225
|
-
"type": "boolean",
|
|
2226
|
-
"example": true
|
|
2227
|
-
}
|
|
2228
|
-
},
|
|
2229
|
-
"required": ["groupId", "property", "value"]
|
|
2230
|
-
}
|
|
2231
2403
|
}
|
|
2232
2404
|
],
|
|
2233
2405
|
"responses": {
|
|
@@ -2242,7 +2414,28 @@
|
|
|
2242
2414
|
{
|
|
2243
2415
|
"bearerAuth": []
|
|
2244
2416
|
}
|
|
2245
|
-
]
|
|
2417
|
+
],
|
|
2418
|
+
"requestBody": {
|
|
2419
|
+
"required": true,
|
|
2420
|
+
"content": {
|
|
2421
|
+
"application/json": {
|
|
2422
|
+
"schema": {
|
|
2423
|
+
"type": "object",
|
|
2424
|
+
"properties": {
|
|
2425
|
+
"$groupId": {
|
|
2426
|
+
"type": "string"
|
|
2427
|
+
},
|
|
2428
|
+
"$property": {
|
|
2429
|
+
"type": "string"
|
|
2430
|
+
},
|
|
2431
|
+
"$value": {
|
|
2432
|
+
"type": "boolean"
|
|
2433
|
+
}
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2246
2439
|
}
|
|
2247
2440
|
},
|
|
2248
2441
|
"/api/{session}/group-subject": {
|
|
@@ -2258,24 +2451,6 @@
|
|
|
2258
2451
|
"type": "string",
|
|
2259
2452
|
"example": "NERDWHATS_AMERICA"
|
|
2260
2453
|
}
|
|
2261
|
-
},
|
|
2262
|
-
{
|
|
2263
|
-
"name": "obj",
|
|
2264
|
-
"in": "body",
|
|
2265
|
-
"schema": {
|
|
2266
|
-
"type": "object",
|
|
2267
|
-
"properties": {
|
|
2268
|
-
"groupId": {
|
|
2269
|
-
"type": "string",
|
|
2270
|
-
"example": "<groupId>"
|
|
2271
|
-
},
|
|
2272
|
-
"title": {
|
|
2273
|
-
"type": "string",
|
|
2274
|
-
"example": "Title for your group"
|
|
2275
|
-
}
|
|
2276
|
-
},
|
|
2277
|
-
"required": ["groupId", "title"]
|
|
2278
|
-
}
|
|
2279
2454
|
}
|
|
2280
2455
|
],
|
|
2281
2456
|
"responses": {
|
|
@@ -2290,7 +2465,25 @@
|
|
|
2290
2465
|
{
|
|
2291
2466
|
"bearerAuth": []
|
|
2292
2467
|
}
|
|
2293
|
-
]
|
|
2468
|
+
],
|
|
2469
|
+
"requestBody": {
|
|
2470
|
+
"required": true,
|
|
2471
|
+
"content": {
|
|
2472
|
+
"application/json": {
|
|
2473
|
+
"schema": {
|
|
2474
|
+
"type": "object",
|
|
2475
|
+
"properties": {
|
|
2476
|
+
"$groupId": {
|
|
2477
|
+
"type": "string"
|
|
2478
|
+
},
|
|
2479
|
+
"$title": {
|
|
2480
|
+
"type": "string"
|
|
2481
|
+
}
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2294
2487
|
}
|
|
2295
2488
|
},
|
|
2296
2489
|
"/api/{session}/messages-admins-only": {
|
|
@@ -2306,24 +2499,6 @@
|
|
|
2306
2499
|
"type": "string",
|
|
2307
2500
|
"example": "NERDWHATS_AMERICA"
|
|
2308
2501
|
}
|
|
2309
|
-
},
|
|
2310
|
-
{
|
|
2311
|
-
"name": "obj",
|
|
2312
|
-
"in": "body",
|
|
2313
|
-
"schema": {
|
|
2314
|
-
"type": "object",
|
|
2315
|
-
"properties": {
|
|
2316
|
-
"groupId": {
|
|
2317
|
-
"type": "string",
|
|
2318
|
-
"example": "<groupId>"
|
|
2319
|
-
},
|
|
2320
|
-
"value": {
|
|
2321
|
-
"type": "boolean",
|
|
2322
|
-
"example": true
|
|
2323
|
-
}
|
|
2324
|
-
},
|
|
2325
|
-
"required": ["groupId", "value"]
|
|
2326
|
-
}
|
|
2327
2502
|
}
|
|
2328
2503
|
],
|
|
2329
2504
|
"responses": {
|
|
@@ -2338,7 +2513,25 @@
|
|
|
2338
2513
|
{
|
|
2339
2514
|
"bearerAuth": []
|
|
2340
2515
|
}
|
|
2341
|
-
]
|
|
2516
|
+
],
|
|
2517
|
+
"requestBody": {
|
|
2518
|
+
"required": true,
|
|
2519
|
+
"content": {
|
|
2520
|
+
"application/json": {
|
|
2521
|
+
"schema": {
|
|
2522
|
+
"type": "object",
|
|
2523
|
+
"properties": {
|
|
2524
|
+
"$groupId": {
|
|
2525
|
+
"type": "string"
|
|
2526
|
+
},
|
|
2527
|
+
"$value": {
|
|
2528
|
+
"type": "boolean"
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2342
2535
|
}
|
|
2343
2536
|
},
|
|
2344
2537
|
"/api/{session}/group-pic": {
|
|
@@ -2354,24 +2547,6 @@
|
|
|
2354
2547
|
"type": "string",
|
|
2355
2548
|
"example": "NERDWHATS_AMERICA"
|
|
2356
2549
|
}
|
|
2357
|
-
},
|
|
2358
|
-
{
|
|
2359
|
-
"name": "obj",
|
|
2360
|
-
"in": "body",
|
|
2361
|
-
"schema": {
|
|
2362
|
-
"type": "object",
|
|
2363
|
-
"properties": {
|
|
2364
|
-
"groupId": {
|
|
2365
|
-
"type": "string",
|
|
2366
|
-
"example": "<groupId>"
|
|
2367
|
-
},
|
|
2368
|
-
"path": {
|
|
2369
|
-
"type": "string",
|
|
2370
|
-
"example": "path_of_your_file"
|
|
2371
|
-
}
|
|
2372
|
-
},
|
|
2373
|
-
"required": ["groupId", "path"]
|
|
2374
|
-
}
|
|
2375
2550
|
}
|
|
2376
2551
|
],
|
|
2377
2552
|
"responses": {
|
|
@@ -2389,7 +2564,25 @@
|
|
|
2389
2564
|
{
|
|
2390
2565
|
"bearerAuth": []
|
|
2391
2566
|
}
|
|
2392
|
-
]
|
|
2567
|
+
],
|
|
2568
|
+
"requestBody": {
|
|
2569
|
+
"required": true,
|
|
2570
|
+
"content": {
|
|
2571
|
+
"application/json": {
|
|
2572
|
+
"schema": {
|
|
2573
|
+
"type": "object",
|
|
2574
|
+
"properties": {
|
|
2575
|
+
"$groupId": {
|
|
2576
|
+
"type": "string"
|
|
2577
|
+
},
|
|
2578
|
+
"$path": {
|
|
2579
|
+
"type": "string"
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2393
2586
|
}
|
|
2394
2587
|
},
|
|
2395
2588
|
"/api/{session}/change-privacy-group": {
|
|
@@ -2405,24 +2598,6 @@
|
|
|
2405
2598
|
"type": "string",
|
|
2406
2599
|
"example": "NERDWHATS_AMERICA"
|
|
2407
2600
|
}
|
|
2408
|
-
},
|
|
2409
|
-
{
|
|
2410
|
-
"name": "obj",
|
|
2411
|
-
"in": "body",
|
|
2412
|
-
"schema": {
|
|
2413
|
-
"type": "object",
|
|
2414
|
-
"properties": {
|
|
2415
|
-
"groupId": {
|
|
2416
|
-
"type": "string",
|
|
2417
|
-
"example": "<groupId>"
|
|
2418
|
-
},
|
|
2419
|
-
"status": {
|
|
2420
|
-
"type": "boolean",
|
|
2421
|
-
"example": true
|
|
2422
|
-
}
|
|
2423
|
-
},
|
|
2424
|
-
"required": ["groupId", "status"]
|
|
2425
|
-
}
|
|
2426
2601
|
}
|
|
2427
2602
|
],
|
|
2428
2603
|
"responses": {
|
|
@@ -2437,7 +2612,25 @@
|
|
|
2437
2612
|
{
|
|
2438
2613
|
"bearerAuth": []
|
|
2439
2614
|
}
|
|
2440
|
-
]
|
|
2615
|
+
],
|
|
2616
|
+
"requestBody": {
|
|
2617
|
+
"required": true,
|
|
2618
|
+
"content": {
|
|
2619
|
+
"application/json": {
|
|
2620
|
+
"schema": {
|
|
2621
|
+
"type": "object",
|
|
2622
|
+
"properties": {
|
|
2623
|
+
"$groupId": {
|
|
2624
|
+
"type": "string"
|
|
2625
|
+
},
|
|
2626
|
+
"$status": {
|
|
2627
|
+
"type": "boolean"
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2441
2634
|
}
|
|
2442
2635
|
},
|
|
2443
2636
|
"/api/{session}/all-chats": {
|
|
@@ -4535,70 +4728,70 @@
|
|
|
4535
4728
|
"type": "string",
|
|
4536
4729
|
"example": "NERDWHATS_AMERICA"
|
|
4537
4730
|
}
|
|
4731
|
+
}
|
|
4732
|
+
],
|
|
4733
|
+
"responses": {
|
|
4734
|
+
"201": {
|
|
4735
|
+
"description": "Created"
|
|
4736
|
+
},
|
|
4737
|
+
"401": {
|
|
4738
|
+
"description": "Unauthorized"
|
|
4538
4739
|
},
|
|
4740
|
+
"500": {
|
|
4741
|
+
"description": "Internal Server Error"
|
|
4742
|
+
}
|
|
4743
|
+
},
|
|
4744
|
+
"security": [
|
|
4539
4745
|
{
|
|
4540
|
-
"
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
"
|
|
4550
|
-
"
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
"
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
"
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
"example": "BRL"
|
|
4746
|
+
"bearerAuth": []
|
|
4747
|
+
}
|
|
4748
|
+
],
|
|
4749
|
+
"requestBody": {
|
|
4750
|
+
"required": true,
|
|
4751
|
+
"content": {
|
|
4752
|
+
"application/json": {
|
|
4753
|
+
"schema": {
|
|
4754
|
+
"type": "object",
|
|
4755
|
+
"properties": {
|
|
4756
|
+
"name": {
|
|
4757
|
+
"type": "string"
|
|
4758
|
+
},
|
|
4759
|
+
"image": {
|
|
4760
|
+
"type": "string"
|
|
4761
|
+
},
|
|
4762
|
+
"description": {
|
|
4763
|
+
"type": "string"
|
|
4764
|
+
},
|
|
4765
|
+
"price": {
|
|
4766
|
+
"type": "string"
|
|
4767
|
+
},
|
|
4768
|
+
"url": {
|
|
4769
|
+
"type": "string"
|
|
4770
|
+
},
|
|
4771
|
+
"retailerId": {
|
|
4772
|
+
"type": "string"
|
|
4773
|
+
},
|
|
4774
|
+
"currency": {
|
|
4775
|
+
"type": "string"
|
|
4776
|
+
}
|
|
4572
4777
|
}
|
|
4573
4778
|
},
|
|
4574
|
-
"
|
|
4575
|
-
"
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4779
|
+
"examples": {
|
|
4780
|
+
"Default": {
|
|
4781
|
+
"value": {
|
|
4782
|
+
"name": "Product name",
|
|
4783
|
+
"image": "<base64_string>",
|
|
4784
|
+
"description": "Description for your product",
|
|
4785
|
+
"price": "8890",
|
|
4786
|
+
"url": "http://link_for_your_product.com",
|
|
4787
|
+
"retailerId": "SKU001",
|
|
4788
|
+
"currency": "BRL"
|
|
4789
|
+
}
|
|
4790
|
+
}
|
|
4791
|
+
}
|
|
4583
4792
|
}
|
|
4584
4793
|
}
|
|
4585
|
-
|
|
4586
|
-
"responses": {
|
|
4587
|
-
"201": {
|
|
4588
|
-
"description": "Created"
|
|
4589
|
-
},
|
|
4590
|
-
"401": {
|
|
4591
|
-
"description": "Unauthorized"
|
|
4592
|
-
},
|
|
4593
|
-
"500": {
|
|
4594
|
-
"description": "Internal Server Error"
|
|
4595
|
-
}
|
|
4596
|
-
},
|
|
4597
|
-
"security": [
|
|
4598
|
-
{
|
|
4599
|
-
"bearerAuth": []
|
|
4600
|
-
}
|
|
4601
|
-
]
|
|
4794
|
+
}
|
|
4602
4795
|
}
|
|
4603
4796
|
},
|
|
4604
4797
|
"/api/{session}/edit-product": {
|
|
@@ -4614,30 +4807,6 @@
|
|
|
4614
4807
|
"type": "string",
|
|
4615
4808
|
"example": "NERDWHATS_AMERICA"
|
|
4616
4809
|
}
|
|
4617
|
-
},
|
|
4618
|
-
{
|
|
4619
|
-
"name": "obj",
|
|
4620
|
-
"in": "body",
|
|
4621
|
-
"schema": {
|
|
4622
|
-
"type": "object",
|
|
4623
|
-
"properties": {
|
|
4624
|
-
"id": {
|
|
4625
|
-
"type": "string",
|
|
4626
|
-
"example": "<product_id>"
|
|
4627
|
-
},
|
|
4628
|
-
"options": {
|
|
4629
|
-
"type": "object",
|
|
4630
|
-
"properties": {
|
|
4631
|
-
"name": {
|
|
4632
|
-
"type": "string",
|
|
4633
|
-
"example": "New name for product"
|
|
4634
|
-
}
|
|
4635
|
-
},
|
|
4636
|
-
"required": ["name"]
|
|
4637
|
-
}
|
|
4638
|
-
},
|
|
4639
|
-
"required": ["id", "options"]
|
|
4640
|
-
}
|
|
4641
4810
|
}
|
|
4642
4811
|
],
|
|
4643
4812
|
"responses": {
|
|
@@ -4655,7 +4824,35 @@
|
|
|
4655
4824
|
{
|
|
4656
4825
|
"bearerAuth": []
|
|
4657
4826
|
}
|
|
4658
|
-
]
|
|
4827
|
+
],
|
|
4828
|
+
"requestBody": {
|
|
4829
|
+
"required": true,
|
|
4830
|
+
"content": {
|
|
4831
|
+
"application/json": {
|
|
4832
|
+
"schema": {
|
|
4833
|
+
"type": "object",
|
|
4834
|
+
"properties": {
|
|
4835
|
+
"id": {
|
|
4836
|
+
"type": "string"
|
|
4837
|
+
},
|
|
4838
|
+
"options": {
|
|
4839
|
+
"type": "object"
|
|
4840
|
+
}
|
|
4841
|
+
}
|
|
4842
|
+
},
|
|
4843
|
+
"examples": {
|
|
4844
|
+
"Default": {
|
|
4845
|
+
"value": {
|
|
4846
|
+
"id": "<product_id>",
|
|
4847
|
+
"options": {
|
|
4848
|
+
"name": "New name for product"
|
|
4849
|
+
}
|
|
4850
|
+
}
|
|
4851
|
+
}
|
|
4852
|
+
}
|
|
4853
|
+
}
|
|
4854
|
+
}
|
|
4855
|
+
}
|
|
4659
4856
|
}
|
|
4660
4857
|
},
|
|
4661
4858
|
"/api/{session}/del-products": {
|
|
@@ -4671,20 +4868,6 @@
|
|
|
4671
4868
|
"type": "string",
|
|
4672
4869
|
"example": "NERDWHATS_AMERICA"
|
|
4673
4870
|
}
|
|
4674
|
-
},
|
|
4675
|
-
{
|
|
4676
|
-
"name": "obj",
|
|
4677
|
-
"in": "body",
|
|
4678
|
-
"schema": {
|
|
4679
|
-
"type": "object",
|
|
4680
|
-
"properties": {
|
|
4681
|
-
"id": {
|
|
4682
|
-
"type": "string",
|
|
4683
|
-
"example": "<product_id>"
|
|
4684
|
-
}
|
|
4685
|
-
},
|
|
4686
|
-
"required": ["id"]
|
|
4687
|
-
}
|
|
4688
4871
|
}
|
|
4689
4872
|
],
|
|
4690
4873
|
"responses": {
|
|
@@ -4702,7 +4885,29 @@
|
|
|
4702
4885
|
{
|
|
4703
4886
|
"bearerAuth": []
|
|
4704
4887
|
}
|
|
4705
|
-
]
|
|
4888
|
+
],
|
|
4889
|
+
"requestBody": {
|
|
4890
|
+
"required": true,
|
|
4891
|
+
"content": {
|
|
4892
|
+
"application/json": {
|
|
4893
|
+
"schema": {
|
|
4894
|
+
"type": "object",
|
|
4895
|
+
"properties": {
|
|
4896
|
+
"id": {
|
|
4897
|
+
"type": "string"
|
|
4898
|
+
}
|
|
4899
|
+
}
|
|
4900
|
+
},
|
|
4901
|
+
"examples": {
|
|
4902
|
+
"Default": {
|
|
4903
|
+
"value": {
|
|
4904
|
+
"id": "<product_id>"
|
|
4905
|
+
}
|
|
4906
|
+
}
|
|
4907
|
+
}
|
|
4908
|
+
}
|
|
4909
|
+
}
|
|
4910
|
+
}
|
|
4706
4911
|
}
|
|
4707
4912
|
},
|
|
4708
4913
|
"/api/{session}/change-product-image": {
|
|
@@ -4718,24 +4923,6 @@
|
|
|
4718
4923
|
"type": "string",
|
|
4719
4924
|
"example": "NERDWHATS_AMERICA"
|
|
4720
4925
|
}
|
|
4721
|
-
},
|
|
4722
|
-
{
|
|
4723
|
-
"name": "obj",
|
|
4724
|
-
"in": "body",
|
|
4725
|
-
"schema": {
|
|
4726
|
-
"type": "object",
|
|
4727
|
-
"properties": {
|
|
4728
|
-
"id": {
|
|
4729
|
-
"type": "string",
|
|
4730
|
-
"example": "<product_id>"
|
|
4731
|
-
},
|
|
4732
|
-
"base64": {
|
|
4733
|
-
"type": "string",
|
|
4734
|
-
"example": "<base64_string>"
|
|
4735
|
-
}
|
|
4736
|
-
},
|
|
4737
|
-
"required": ["id", "base64"]
|
|
4738
|
-
}
|
|
4739
4926
|
}
|
|
4740
4927
|
],
|
|
4741
4928
|
"responses": {
|
|
@@ -4753,7 +4940,33 @@
|
|
|
4753
4940
|
{
|
|
4754
4941
|
"bearerAuth": []
|
|
4755
4942
|
}
|
|
4756
|
-
]
|
|
4943
|
+
],
|
|
4944
|
+
"requestBody": {
|
|
4945
|
+
"required": true,
|
|
4946
|
+
"content": {
|
|
4947
|
+
"application/json": {
|
|
4948
|
+
"schema": {
|
|
4949
|
+
"type": "object",
|
|
4950
|
+
"properties": {
|
|
4951
|
+
"id": {
|
|
4952
|
+
"type": "string"
|
|
4953
|
+
},
|
|
4954
|
+
"base64": {
|
|
4955
|
+
"type": "string"
|
|
4956
|
+
}
|
|
4957
|
+
}
|
|
4958
|
+
},
|
|
4959
|
+
"examples": {
|
|
4960
|
+
"Default": {
|
|
4961
|
+
"value": {
|
|
4962
|
+
"id": "<product_id>",
|
|
4963
|
+
"base64": "<base64_string>"
|
|
4964
|
+
}
|
|
4965
|
+
}
|
|
4966
|
+
}
|
|
4967
|
+
}
|
|
4968
|
+
}
|
|
4969
|
+
}
|
|
4757
4970
|
}
|
|
4758
4971
|
},
|
|
4759
4972
|
"/api/{session}/add-product-image": {
|
|
@@ -4769,24 +4982,6 @@
|
|
|
4769
4982
|
"type": "string",
|
|
4770
4983
|
"example": "NERDWHATS_AMERICA"
|
|
4771
4984
|
}
|
|
4772
|
-
},
|
|
4773
|
-
{
|
|
4774
|
-
"name": "obj",
|
|
4775
|
-
"in": "body",
|
|
4776
|
-
"schema": {
|
|
4777
|
-
"type": "object",
|
|
4778
|
-
"properties": {
|
|
4779
|
-
"id": {
|
|
4780
|
-
"type": "string",
|
|
4781
|
-
"example": "<product_id>"
|
|
4782
|
-
},
|
|
4783
|
-
"base64": {
|
|
4784
|
-
"type": "string",
|
|
4785
|
-
"example": "<base64_string>"
|
|
4786
|
-
}
|
|
4787
|
-
},
|
|
4788
|
-
"required": ["id", "base64"]
|
|
4789
|
-
}
|
|
4790
4985
|
}
|
|
4791
4986
|
],
|
|
4792
4987
|
"responses": {
|
|
@@ -4804,7 +4999,33 @@
|
|
|
4804
4999
|
{
|
|
4805
5000
|
"bearerAuth": []
|
|
4806
5001
|
}
|
|
4807
|
-
]
|
|
5002
|
+
],
|
|
5003
|
+
"requestBody": {
|
|
5004
|
+
"required": true,
|
|
5005
|
+
"content": {
|
|
5006
|
+
"application/json": {
|
|
5007
|
+
"schema": {
|
|
5008
|
+
"type": "object",
|
|
5009
|
+
"properties": {
|
|
5010
|
+
"id": {
|
|
5011
|
+
"type": "string"
|
|
5012
|
+
},
|
|
5013
|
+
"base64": {
|
|
5014
|
+
"type": "string"
|
|
5015
|
+
}
|
|
5016
|
+
}
|
|
5017
|
+
},
|
|
5018
|
+
"examples": {
|
|
5019
|
+
"Default": {
|
|
5020
|
+
"value": {
|
|
5021
|
+
"id": "<product_id>",
|
|
5022
|
+
"base64": "<base64_string>"
|
|
5023
|
+
}
|
|
5024
|
+
}
|
|
5025
|
+
}
|
|
5026
|
+
}
|
|
5027
|
+
}
|
|
5028
|
+
}
|
|
4808
5029
|
}
|
|
4809
5030
|
},
|
|
4810
5031
|
"/api/{session}/remove-product-image": {
|
|
@@ -4820,24 +5041,6 @@
|
|
|
4820
5041
|
"type": "string",
|
|
4821
5042
|
"example": "NERDWHATS_AMERICA"
|
|
4822
5043
|
}
|
|
4823
|
-
},
|
|
4824
|
-
{
|
|
4825
|
-
"name": "obj",
|
|
4826
|
-
"in": "body",
|
|
4827
|
-
"schema": {
|
|
4828
|
-
"type": "object",
|
|
4829
|
-
"properties": {
|
|
4830
|
-
"id": {
|
|
4831
|
-
"type": "string",
|
|
4832
|
-
"example": "<product_id>"
|
|
4833
|
-
},
|
|
4834
|
-
"index": {
|
|
4835
|
-
"type": "string",
|
|
4836
|
-
"example": "1"
|
|
4837
|
-
}
|
|
4838
|
-
},
|
|
4839
|
-
"required": ["id", "index"]
|
|
4840
|
-
}
|
|
4841
5044
|
}
|
|
4842
5045
|
],
|
|
4843
5046
|
"responses": {
|
|
@@ -4855,7 +5058,33 @@
|
|
|
4855
5058
|
{
|
|
4856
5059
|
"bearerAuth": []
|
|
4857
5060
|
}
|
|
4858
|
-
]
|
|
5061
|
+
],
|
|
5062
|
+
"requestBody": {
|
|
5063
|
+
"required": true,
|
|
5064
|
+
"content": {
|
|
5065
|
+
"application/json": {
|
|
5066
|
+
"schema": {
|
|
5067
|
+
"type": "object",
|
|
5068
|
+
"properties": {
|
|
5069
|
+
"id": {
|
|
5070
|
+
"type": "string"
|
|
5071
|
+
},
|
|
5072
|
+
"index": {
|
|
5073
|
+
"type": "number"
|
|
5074
|
+
}
|
|
5075
|
+
}
|
|
5076
|
+
},
|
|
5077
|
+
"examples": {
|
|
5078
|
+
"Default": {
|
|
5079
|
+
"value": {
|
|
5080
|
+
"id": "<product_id>",
|
|
5081
|
+
"index": 1
|
|
5082
|
+
}
|
|
5083
|
+
}
|
|
5084
|
+
}
|
|
5085
|
+
}
|
|
5086
|
+
}
|
|
5087
|
+
}
|
|
4859
5088
|
}
|
|
4860
5089
|
},
|
|
4861
5090
|
"/api/{session}/get-collections": {
|
|
@@ -4917,37 +5146,16 @@
|
|
|
4917
5146
|
},
|
|
4918
5147
|
"/api/{session}/create-collection": {
|
|
4919
5148
|
"post": {
|
|
4920
|
-
"tags": ["Catalog & Bussiness"],
|
|
4921
|
-
"description": "",
|
|
4922
|
-
"parameters": [
|
|
4923
|
-
{
|
|
4924
|
-
"name": "session",
|
|
4925
|
-
"in": "path",
|
|
4926
|
-
"required": true,
|
|
4927
|
-
"schema": {
|
|
4928
|
-
"type": "string",
|
|
4929
|
-
"example": "NERDWHATS_AMERICA"
|
|
4930
|
-
}
|
|
4931
|
-
},
|
|
4932
|
-
{
|
|
4933
|
-
"name": "obj",
|
|
4934
|
-
"in": "body",
|
|
4935
|
-
"schema": {
|
|
4936
|
-
"type": "object",
|
|
4937
|
-
"properties": {
|
|
4938
|
-
"name": {
|
|
4939
|
-
"type": "string",
|
|
4940
|
-
"example": "Collection name"
|
|
4941
|
-
},
|
|
4942
|
-
"products": {
|
|
4943
|
-
"type": "array",
|
|
4944
|
-
"example": ["<id_product1>", "<id_product2>"],
|
|
4945
|
-
"items": {
|
|
4946
|
-
"type": "string"
|
|
4947
|
-
}
|
|
4948
|
-
}
|
|
4949
|
-
},
|
|
4950
|
-
"required": ["name", "products"]
|
|
5149
|
+
"tags": ["Catalog & Bussiness"],
|
|
5150
|
+
"description": "",
|
|
5151
|
+
"parameters": [
|
|
5152
|
+
{
|
|
5153
|
+
"name": "session",
|
|
5154
|
+
"in": "path",
|
|
5155
|
+
"required": true,
|
|
5156
|
+
"schema": {
|
|
5157
|
+
"type": "string",
|
|
5158
|
+
"example": "NERDWHATS_AMERICA"
|
|
4951
5159
|
}
|
|
4952
5160
|
}
|
|
4953
5161
|
],
|
|
@@ -4966,7 +5174,33 @@
|
|
|
4966
5174
|
{
|
|
4967
5175
|
"bearerAuth": []
|
|
4968
5176
|
}
|
|
4969
|
-
]
|
|
5177
|
+
],
|
|
5178
|
+
"requestBody": {
|
|
5179
|
+
"required": true,
|
|
5180
|
+
"content": {
|
|
5181
|
+
"application/json": {
|
|
5182
|
+
"schema": {
|
|
5183
|
+
"type": "object",
|
|
5184
|
+
"properties": {
|
|
5185
|
+
"name": {
|
|
5186
|
+
"type": "string"
|
|
5187
|
+
},
|
|
5188
|
+
"products": {
|
|
5189
|
+
"type": "array"
|
|
5190
|
+
}
|
|
5191
|
+
}
|
|
5192
|
+
},
|
|
5193
|
+
"examples": {
|
|
5194
|
+
"Default": {
|
|
5195
|
+
"value": {
|
|
5196
|
+
"name": "Collection name",
|
|
5197
|
+
"products": ["<id_product1>", "<id_product2>"]
|
|
5198
|
+
}
|
|
5199
|
+
}
|
|
5200
|
+
}
|
|
5201
|
+
}
|
|
5202
|
+
}
|
|
5203
|
+
}
|
|
4970
5204
|
}
|
|
4971
5205
|
},
|
|
4972
5206
|
"/api/{session}/edit-collection": {
|
|
@@ -4982,29 +5216,6 @@
|
|
|
4982
5216
|
"type": "string",
|
|
4983
5217
|
"example": "NERDWHATS_AMERICA"
|
|
4984
5218
|
}
|
|
4985
|
-
},
|
|
4986
|
-
{
|
|
4987
|
-
"name": "obj",
|
|
4988
|
-
"in": "body",
|
|
4989
|
-
"schema": {
|
|
4990
|
-
"type": "object",
|
|
4991
|
-
"properties": {
|
|
4992
|
-
"id": {
|
|
4993
|
-
"type": "string",
|
|
4994
|
-
"example": "<id_product>"
|
|
4995
|
-
},
|
|
4996
|
-
"options": {
|
|
4997
|
-
"type": "object",
|
|
4998
|
-
"properties": {
|
|
4999
|
-
"name": {
|
|
5000
|
-
"type": "string",
|
|
5001
|
-
"example": "New name for collection"
|
|
5002
|
-
}
|
|
5003
|
-
}
|
|
5004
|
-
}
|
|
5005
|
-
},
|
|
5006
|
-
"required": ["id", "options"]
|
|
5007
|
-
}
|
|
5008
5219
|
}
|
|
5009
5220
|
],
|
|
5010
5221
|
"responses": {
|
|
@@ -5022,7 +5233,35 @@
|
|
|
5022
5233
|
{
|
|
5023
5234
|
"bearerAuth": []
|
|
5024
5235
|
}
|
|
5025
|
-
]
|
|
5236
|
+
],
|
|
5237
|
+
"requestBody": {
|
|
5238
|
+
"required": true,
|
|
5239
|
+
"content": {
|
|
5240
|
+
"application/json": {
|
|
5241
|
+
"schema": {
|
|
5242
|
+
"type": "object",
|
|
5243
|
+
"properties": {
|
|
5244
|
+
"id": {
|
|
5245
|
+
"type": "string"
|
|
5246
|
+
},
|
|
5247
|
+
"products": {
|
|
5248
|
+
"type": "array"
|
|
5249
|
+
}
|
|
5250
|
+
}
|
|
5251
|
+
},
|
|
5252
|
+
"examples": {
|
|
5253
|
+
"Default": {
|
|
5254
|
+
"value": {
|
|
5255
|
+
"id": "<product_id>",
|
|
5256
|
+
"options": {
|
|
5257
|
+
"name": "New name for collection"
|
|
5258
|
+
}
|
|
5259
|
+
}
|
|
5260
|
+
}
|
|
5261
|
+
}
|
|
5262
|
+
}
|
|
5263
|
+
}
|
|
5264
|
+
}
|
|
5026
5265
|
}
|
|
5027
5266
|
},
|
|
5028
5267
|
"/api/{session}/del-collection": {
|
|
@@ -5038,20 +5277,6 @@
|
|
|
5038
5277
|
"type": "string",
|
|
5039
5278
|
"example": "NERDWHATS_AMERICA"
|
|
5040
5279
|
}
|
|
5041
|
-
},
|
|
5042
|
-
{
|
|
5043
|
-
"name": "obj",
|
|
5044
|
-
"in": "body",
|
|
5045
|
-
"schema": {
|
|
5046
|
-
"type": "object",
|
|
5047
|
-
"properties": {
|
|
5048
|
-
"id": {
|
|
5049
|
-
"type": "string",
|
|
5050
|
-
"example": "<id_product>"
|
|
5051
|
-
}
|
|
5052
|
-
},
|
|
5053
|
-
"required": ["id"]
|
|
5054
|
-
}
|
|
5055
5280
|
}
|
|
5056
5281
|
],
|
|
5057
5282
|
"responses": {
|
|
@@ -5069,7 +5294,29 @@
|
|
|
5069
5294
|
{
|
|
5070
5295
|
"bearerAuth": []
|
|
5071
5296
|
}
|
|
5072
|
-
]
|
|
5297
|
+
],
|
|
5298
|
+
"requestBody": {
|
|
5299
|
+
"required": true,
|
|
5300
|
+
"content": {
|
|
5301
|
+
"application/json": {
|
|
5302
|
+
"schema": {
|
|
5303
|
+
"type": "object",
|
|
5304
|
+
"properties": {
|
|
5305
|
+
"id": {
|
|
5306
|
+
"type": "string"
|
|
5307
|
+
}
|
|
5308
|
+
}
|
|
5309
|
+
},
|
|
5310
|
+
"examples": {
|
|
5311
|
+
"Default": {
|
|
5312
|
+
"value": {
|
|
5313
|
+
"id": "<product_id>"
|
|
5314
|
+
}
|
|
5315
|
+
}
|
|
5316
|
+
}
|
|
5317
|
+
}
|
|
5318
|
+
}
|
|
5319
|
+
}
|
|
5073
5320
|
}
|
|
5074
5321
|
},
|
|
5075
5322
|
"/api/{session}/send-link-catalog": {
|
|
@@ -5085,27 +5332,6 @@
|
|
|
5085
5332
|
"type": "string",
|
|
5086
5333
|
"example": "NERDWHATS_AMERICA"
|
|
5087
5334
|
}
|
|
5088
|
-
},
|
|
5089
|
-
{
|
|
5090
|
-
"name": "obj",
|
|
5091
|
-
"in": "body",
|
|
5092
|
-
"schema": {
|
|
5093
|
-
"type": "object",
|
|
5094
|
-
"properties": {
|
|
5095
|
-
"phones": {
|
|
5096
|
-
"type": "array",
|
|
5097
|
-
"example": ["<array_phone_id"],
|
|
5098
|
-
"items": {
|
|
5099
|
-
"type": "string"
|
|
5100
|
-
}
|
|
5101
|
-
},
|
|
5102
|
-
"message": {
|
|
5103
|
-
"type": "string",
|
|
5104
|
-
"example": "Message"
|
|
5105
|
-
}
|
|
5106
|
-
},
|
|
5107
|
-
"required": ["phones", "message"]
|
|
5108
|
-
}
|
|
5109
5335
|
}
|
|
5110
5336
|
],
|
|
5111
5337
|
"responses": {
|
|
@@ -5123,7 +5349,33 @@
|
|
|
5123
5349
|
{
|
|
5124
5350
|
"bearerAuth": []
|
|
5125
5351
|
}
|
|
5126
|
-
]
|
|
5352
|
+
],
|
|
5353
|
+
"requestBody": {
|
|
5354
|
+
"required": true,
|
|
5355
|
+
"content": {
|
|
5356
|
+
"application/json": {
|
|
5357
|
+
"schema": {
|
|
5358
|
+
"type": "object",
|
|
5359
|
+
"properties": {
|
|
5360
|
+
"phones": {
|
|
5361
|
+
"type": "array"
|
|
5362
|
+
},
|
|
5363
|
+
"message": {
|
|
5364
|
+
"type": "string"
|
|
5365
|
+
}
|
|
5366
|
+
}
|
|
5367
|
+
},
|
|
5368
|
+
"examples": {
|
|
5369
|
+
"Default": {
|
|
5370
|
+
"value": {
|
|
5371
|
+
"phones": ["<array_phone_id"],
|
|
5372
|
+
"message": "Message"
|
|
5373
|
+
}
|
|
5374
|
+
}
|
|
5375
|
+
}
|
|
5376
|
+
}
|
|
5377
|
+
}
|
|
5378
|
+
}
|
|
5127
5379
|
}
|
|
5128
5380
|
},
|
|
5129
5381
|
"/api/{session}/set-product-visibility": {
|
|
@@ -5174,7 +5426,33 @@
|
|
|
5174
5426
|
{
|
|
5175
5427
|
"bearerAuth": []
|
|
5176
5428
|
}
|
|
5177
|
-
]
|
|
5429
|
+
],
|
|
5430
|
+
"requestBody": {
|
|
5431
|
+
"required": true,
|
|
5432
|
+
"content": {
|
|
5433
|
+
"application/json": {
|
|
5434
|
+
"schema": {
|
|
5435
|
+
"type": "object",
|
|
5436
|
+
"properties": {
|
|
5437
|
+
"id": {
|
|
5438
|
+
"type": "string"
|
|
5439
|
+
},
|
|
5440
|
+
"value": {
|
|
5441
|
+
"type": "boolean"
|
|
5442
|
+
}
|
|
5443
|
+
}
|
|
5444
|
+
},
|
|
5445
|
+
"examples": {
|
|
5446
|
+
"Default": {
|
|
5447
|
+
"value": {
|
|
5448
|
+
"id": "<product_id>",
|
|
5449
|
+
"value": false
|
|
5450
|
+
}
|
|
5451
|
+
}
|
|
5452
|
+
}
|
|
5453
|
+
}
|
|
5454
|
+
}
|
|
5455
|
+
}
|
|
5178
5456
|
}
|
|
5179
5457
|
},
|
|
5180
5458
|
"/api/{session}/set-cart-enabled": {
|
|
@@ -5190,20 +5468,6 @@
|
|
|
5190
5468
|
"type": "string",
|
|
5191
5469
|
"example": "NERDWHATS_AMERICA"
|
|
5192
5470
|
}
|
|
5193
|
-
},
|
|
5194
|
-
{
|
|
5195
|
-
"name": "obj",
|
|
5196
|
-
"in": "body",
|
|
5197
|
-
"schema": {
|
|
5198
|
-
"type": "object",
|
|
5199
|
-
"properties": {
|
|
5200
|
-
"enabled": {
|
|
5201
|
-
"type": "boolean",
|
|
5202
|
-
"example": true
|
|
5203
|
-
}
|
|
5204
|
-
},
|
|
5205
|
-
"required": ["enabled"]
|
|
5206
|
-
}
|
|
5207
5471
|
}
|
|
5208
5472
|
],
|
|
5209
5473
|
"responses": {
|
|
@@ -5221,7 +5485,29 @@
|
|
|
5221
5485
|
{
|
|
5222
5486
|
"bearerAuth": []
|
|
5223
5487
|
}
|
|
5224
|
-
]
|
|
5488
|
+
],
|
|
5489
|
+
"requestBody": {
|
|
5490
|
+
"required": true,
|
|
5491
|
+
"content": {
|
|
5492
|
+
"application/json": {
|
|
5493
|
+
"schema": {
|
|
5494
|
+
"type": "object",
|
|
5495
|
+
"properties": {
|
|
5496
|
+
"enabled": {
|
|
5497
|
+
"type": "boolean"
|
|
5498
|
+
}
|
|
5499
|
+
}
|
|
5500
|
+
},
|
|
5501
|
+
"examples": {
|
|
5502
|
+
"Default": {
|
|
5503
|
+
"value": {
|
|
5504
|
+
"enabled": true
|
|
5505
|
+
}
|
|
5506
|
+
}
|
|
5507
|
+
}
|
|
5508
|
+
}
|
|
5509
|
+
}
|
|
5510
|
+
}
|
|
5225
5511
|
}
|
|
5226
5512
|
},
|
|
5227
5513
|
"/api/{session}/send-text-storie": {
|
|
@@ -5261,24 +5547,53 @@
|
|
|
5261
5547
|
}
|
|
5262
5548
|
}
|
|
5263
5549
|
}
|
|
5264
|
-
}
|
|
5265
|
-
|
|
5550
|
+
}
|
|
5551
|
+
}
|
|
5552
|
+
}
|
|
5553
|
+
],
|
|
5554
|
+
"responses": {
|
|
5555
|
+
"400": {
|
|
5556
|
+
"description": "Bad Request"
|
|
5557
|
+
},
|
|
5558
|
+
"401": {
|
|
5559
|
+
"description": "Unauthorized"
|
|
5560
|
+
}
|
|
5561
|
+
},
|
|
5562
|
+
"security": [
|
|
5563
|
+
{
|
|
5564
|
+
"bearerAuth": []
|
|
5565
|
+
}
|
|
5566
|
+
],
|
|
5567
|
+
"requestBody": {
|
|
5568
|
+
"required": true,
|
|
5569
|
+
"content": {
|
|
5570
|
+
"application/json": {
|
|
5571
|
+
"schema": {
|
|
5572
|
+
"type": "object",
|
|
5573
|
+
"properties": {
|
|
5574
|
+
"text": {
|
|
5575
|
+
"type": "string"
|
|
5576
|
+
},
|
|
5577
|
+
"options": {
|
|
5578
|
+
"type": "object"
|
|
5579
|
+
}
|
|
5580
|
+
},
|
|
5581
|
+
"required": ["text"]
|
|
5582
|
+
},
|
|
5583
|
+
"examples": {
|
|
5584
|
+
"Default": {
|
|
5585
|
+
"value": {
|
|
5586
|
+
"text": "My new storie",
|
|
5587
|
+
"options": {
|
|
5588
|
+
"backgroundColor": "#0275d8",
|
|
5589
|
+
"font": 2
|
|
5590
|
+
}
|
|
5591
|
+
}
|
|
5592
|
+
}
|
|
5593
|
+
}
|
|
5266
5594
|
}
|
|
5267
5595
|
}
|
|
5268
|
-
|
|
5269
|
-
"responses": {
|
|
5270
|
-
"400": {
|
|
5271
|
-
"description": "Bad Request"
|
|
5272
|
-
},
|
|
5273
|
-
"401": {
|
|
5274
|
-
"description": "Unauthorized"
|
|
5275
|
-
}
|
|
5276
|
-
},
|
|
5277
|
-
"security": [
|
|
5278
|
-
{
|
|
5279
|
-
"bearerAuth": []
|
|
5280
|
-
}
|
|
5281
|
-
]
|
|
5596
|
+
}
|
|
5282
5597
|
}
|
|
5283
5598
|
},
|
|
5284
5599
|
"/api/{session}/send-image-storie": {
|
|
@@ -5294,20 +5609,6 @@
|
|
|
5294
5609
|
"type": "string",
|
|
5295
5610
|
"example": "NERDWHATS_AMERICA"
|
|
5296
5611
|
}
|
|
5297
|
-
},
|
|
5298
|
-
{
|
|
5299
|
-
"name": "obj",
|
|
5300
|
-
"in": "body",
|
|
5301
|
-
"schema": {
|
|
5302
|
-
"type": "object",
|
|
5303
|
-
"properties": {
|
|
5304
|
-
"path": {
|
|
5305
|
-
"type": "string",
|
|
5306
|
-
"example": "Path of your image"
|
|
5307
|
-
}
|
|
5308
|
-
},
|
|
5309
|
-
"required": ["path"]
|
|
5310
|
-
}
|
|
5311
5612
|
}
|
|
5312
5613
|
],
|
|
5313
5614
|
"responses": {
|
|
@@ -5322,7 +5623,30 @@
|
|
|
5322
5623
|
{
|
|
5323
5624
|
"bearerAuth": []
|
|
5324
5625
|
}
|
|
5325
|
-
]
|
|
5626
|
+
],
|
|
5627
|
+
"requestBody": {
|
|
5628
|
+
"required": true,
|
|
5629
|
+
"content": {
|
|
5630
|
+
"application/json": {
|
|
5631
|
+
"schema": {
|
|
5632
|
+
"type": "object",
|
|
5633
|
+
"properties": {
|
|
5634
|
+
"path": {
|
|
5635
|
+
"type": "string"
|
|
5636
|
+
}
|
|
5637
|
+
},
|
|
5638
|
+
"required": ["path"]
|
|
5639
|
+
},
|
|
5640
|
+
"examples": {
|
|
5641
|
+
"Default": {
|
|
5642
|
+
"value": {
|
|
5643
|
+
"path": "Path of your image"
|
|
5644
|
+
}
|
|
5645
|
+
}
|
|
5646
|
+
}
|
|
5647
|
+
}
|
|
5648
|
+
}
|
|
5649
|
+
}
|
|
5326
5650
|
}
|
|
5327
5651
|
},
|
|
5328
5652
|
"/api/{session}/send-video-storie": {
|
|
@@ -5338,20 +5662,6 @@
|
|
|
5338
5662
|
"type": "string",
|
|
5339
5663
|
"example": "NERDWHATS_AMERICA"
|
|
5340
5664
|
}
|
|
5341
|
-
},
|
|
5342
|
-
{
|
|
5343
|
-
"name": "obj",
|
|
5344
|
-
"in": "body",
|
|
5345
|
-
"schema": {
|
|
5346
|
-
"type": "object",
|
|
5347
|
-
"properties": {
|
|
5348
|
-
"path": {
|
|
5349
|
-
"type": "string",
|
|
5350
|
-
"example": "Path of your video"
|
|
5351
|
-
}
|
|
5352
|
-
},
|
|
5353
|
-
"required": ["path"]
|
|
5354
|
-
}
|
|
5355
5665
|
}
|
|
5356
5666
|
],
|
|
5357
5667
|
"responses": {
|
|
@@ -5366,7 +5676,30 @@
|
|
|
5366
5676
|
{
|
|
5367
5677
|
"bearerAuth": []
|
|
5368
5678
|
}
|
|
5369
|
-
]
|
|
5679
|
+
],
|
|
5680
|
+
"requestBody": {
|
|
5681
|
+
"required": true,
|
|
5682
|
+
"content": {
|
|
5683
|
+
"application/json": {
|
|
5684
|
+
"schema": {
|
|
5685
|
+
"type": "object",
|
|
5686
|
+
"properties": {
|
|
5687
|
+
"path": {
|
|
5688
|
+
"type": "string"
|
|
5689
|
+
}
|
|
5690
|
+
},
|
|
5691
|
+
"required": ["path"]
|
|
5692
|
+
},
|
|
5693
|
+
"examples": {
|
|
5694
|
+
"Default": {
|
|
5695
|
+
"value": {
|
|
5696
|
+
"path": "Path of your video"
|
|
5697
|
+
}
|
|
5698
|
+
}
|
|
5699
|
+
}
|
|
5700
|
+
}
|
|
5701
|
+
}
|
|
5702
|
+
}
|
|
5370
5703
|
}
|
|
5371
5704
|
},
|
|
5372
5705
|
"/api/{session}/add-new-label": {
|
|
@@ -5382,29 +5715,6 @@
|
|
|
5382
5715
|
"type": "string",
|
|
5383
5716
|
"example": "NERDWHATS_AMERICA"
|
|
5384
5717
|
}
|
|
5385
|
-
},
|
|
5386
|
-
{
|
|
5387
|
-
"name": "obj",
|
|
5388
|
-
"in": "body",
|
|
5389
|
-
"schema": {
|
|
5390
|
-
"type": "object",
|
|
5391
|
-
"properties": {
|
|
5392
|
-
"name": {
|
|
5393
|
-
"type": "string",
|
|
5394
|
-
"example": "Name of your label"
|
|
5395
|
-
},
|
|
5396
|
-
"options": {
|
|
5397
|
-
"type": "object",
|
|
5398
|
-
"properties": {
|
|
5399
|
-
"labelColor": {
|
|
5400
|
-
"type": "number",
|
|
5401
|
-
"example": 4292849392
|
|
5402
|
-
}
|
|
5403
|
-
}
|
|
5404
|
-
}
|
|
5405
|
-
},
|
|
5406
|
-
"required": ["name", "options"]
|
|
5407
|
-
}
|
|
5408
5718
|
}
|
|
5409
5719
|
],
|
|
5410
5720
|
"responses": {
|
|
@@ -5422,7 +5732,41 @@
|
|
|
5422
5732
|
{
|
|
5423
5733
|
"bearerAuth": []
|
|
5424
5734
|
}
|
|
5425
|
-
]
|
|
5735
|
+
],
|
|
5736
|
+
"requestBody": {
|
|
5737
|
+
"required": true,
|
|
5738
|
+
"content": {
|
|
5739
|
+
"application/json": {
|
|
5740
|
+
"schema": {
|
|
5741
|
+
"type": "object",
|
|
5742
|
+
"properties": {
|
|
5743
|
+
"$name": {
|
|
5744
|
+
"type": "string"
|
|
5745
|
+
},
|
|
5746
|
+
"$options": {
|
|
5747
|
+
"type": "object",
|
|
5748
|
+
"properties": {
|
|
5749
|
+
"labelColor": {
|
|
5750
|
+
"type": "number"
|
|
5751
|
+
}
|
|
5752
|
+
}
|
|
5753
|
+
}
|
|
5754
|
+
},
|
|
5755
|
+
"required": ["name", "options"]
|
|
5756
|
+
},
|
|
5757
|
+
"examples": {
|
|
5758
|
+
"Default": {
|
|
5759
|
+
"value": {
|
|
5760
|
+
"name": "Name of your label",
|
|
5761
|
+
"options": {
|
|
5762
|
+
"labelColor": 4292849392
|
|
5763
|
+
}
|
|
5764
|
+
}
|
|
5765
|
+
}
|
|
5766
|
+
}
|
|
5767
|
+
}
|
|
5768
|
+
}
|
|
5769
|
+
}
|
|
5426
5770
|
}
|
|
5427
5771
|
},
|
|
5428
5772
|
"/api/{session}/add-or-remove-label": {
|
|
@@ -5438,39 +5782,6 @@
|
|
|
5438
5782
|
"type": "string",
|
|
5439
5783
|
"example": "NERDWHATS_AMERICA"
|
|
5440
5784
|
}
|
|
5441
|
-
},
|
|
5442
|
-
{
|
|
5443
|
-
"name": "obj",
|
|
5444
|
-
"in": "body",
|
|
5445
|
-
"schema": {
|
|
5446
|
-
"type": "object",
|
|
5447
|
-
"properties": {
|
|
5448
|
-
"chatIds": {
|
|
5449
|
-
"type": "array",
|
|
5450
|
-
"example": ["5521999999999"],
|
|
5451
|
-
"items": {
|
|
5452
|
-
"type": "string"
|
|
5453
|
-
}
|
|
5454
|
-
},
|
|
5455
|
-
"options": {
|
|
5456
|
-
"type": "array",
|
|
5457
|
-
"items": {
|
|
5458
|
-
"type": "object",
|
|
5459
|
-
"properties": {
|
|
5460
|
-
"labelId": {
|
|
5461
|
-
"type": "string",
|
|
5462
|
-
"example": "75"
|
|
5463
|
-
},
|
|
5464
|
-
"type": {
|
|
5465
|
-
"type": "string",
|
|
5466
|
-
"example": "remove"
|
|
5467
|
-
}
|
|
5468
|
-
}
|
|
5469
|
-
}
|
|
5470
|
-
}
|
|
5471
|
-
},
|
|
5472
|
-
"required": ["chatIds", "options"]
|
|
5473
|
-
}
|
|
5474
5785
|
}
|
|
5475
5786
|
],
|
|
5476
5787
|
"responses": {
|
|
@@ -5488,7 +5799,57 @@
|
|
|
5488
5799
|
{
|
|
5489
5800
|
"bearerAuth": []
|
|
5490
5801
|
}
|
|
5491
|
-
]
|
|
5802
|
+
],
|
|
5803
|
+
"requestBody": {
|
|
5804
|
+
"required": true,
|
|
5805
|
+
"content": {
|
|
5806
|
+
"application/json": {
|
|
5807
|
+
"schema": {
|
|
5808
|
+
"type": "object",
|
|
5809
|
+
"properties": {
|
|
5810
|
+
"chatIds": {
|
|
5811
|
+
"type": "array",
|
|
5812
|
+
"items": {
|
|
5813
|
+
"type": "string"
|
|
5814
|
+
}
|
|
5815
|
+
},
|
|
5816
|
+
"options": {
|
|
5817
|
+
"type": "array",
|
|
5818
|
+
"items": {
|
|
5819
|
+
"type": "object",
|
|
5820
|
+
"properties": {
|
|
5821
|
+
"labelId": {
|
|
5822
|
+
"type": "string"
|
|
5823
|
+
},
|
|
5824
|
+
"type": {
|
|
5825
|
+
"type": "string"
|
|
5826
|
+
}
|
|
5827
|
+
}
|
|
5828
|
+
}
|
|
5829
|
+
}
|
|
5830
|
+
},
|
|
5831
|
+
"required": ["chatIds"]
|
|
5832
|
+
},
|
|
5833
|
+
"examples": {
|
|
5834
|
+
"Default": {
|
|
5835
|
+
"value": {
|
|
5836
|
+
"chatIds": ["5521999999999"],
|
|
5837
|
+
"options": [
|
|
5838
|
+
{
|
|
5839
|
+
"labelId": "76",
|
|
5840
|
+
"type": "add"
|
|
5841
|
+
},
|
|
5842
|
+
{
|
|
5843
|
+
"labelId": "75",
|
|
5844
|
+
"type": "remove"
|
|
5845
|
+
}
|
|
5846
|
+
]
|
|
5847
|
+
}
|
|
5848
|
+
}
|
|
5849
|
+
}
|
|
5850
|
+
}
|
|
5851
|
+
}
|
|
5852
|
+
}
|
|
5492
5853
|
}
|
|
5493
5854
|
},
|
|
5494
5855
|
"/api/{session}/get-all-labels": {
|
|
@@ -6345,20 +6706,6 @@
|
|
|
6345
6706
|
"type": "string",
|
|
6346
6707
|
"example": "NERDWHATS_AMERICA"
|
|
6347
6708
|
}
|
|
6348
|
-
},
|
|
6349
|
-
{
|
|
6350
|
-
"name": "obj",
|
|
6351
|
-
"in": "body",
|
|
6352
|
-
"schema": {
|
|
6353
|
-
"type": "object",
|
|
6354
|
-
"properties": {
|
|
6355
|
-
"messageId": {
|
|
6356
|
-
"type": "string",
|
|
6357
|
-
"example": "<message_id>"
|
|
6358
|
-
}
|
|
6359
|
-
},
|
|
6360
|
-
"required": ["messageId"]
|
|
6361
|
-
}
|
|
6362
6709
|
}
|
|
6363
6710
|
],
|
|
6364
6711
|
"responses": {},
|
|
@@ -6366,7 +6713,30 @@
|
|
|
6366
6713
|
{
|
|
6367
6714
|
"bearerAuth": []
|
|
6368
6715
|
}
|
|
6369
|
-
]
|
|
6716
|
+
],
|
|
6717
|
+
"requestBody": {
|
|
6718
|
+
"required": true,
|
|
6719
|
+
"content": {
|
|
6720
|
+
"application/json": {
|
|
6721
|
+
"schema": {
|
|
6722
|
+
"type": "object",
|
|
6723
|
+
"properties": {
|
|
6724
|
+
"messageId": {
|
|
6725
|
+
"type": "string"
|
|
6726
|
+
}
|
|
6727
|
+
},
|
|
6728
|
+
"required": ["messageId"]
|
|
6729
|
+
},
|
|
6730
|
+
"examples": {
|
|
6731
|
+
"Default": {
|
|
6732
|
+
"value": {
|
|
6733
|
+
"messageId": "<message_id>"
|
|
6734
|
+
}
|
|
6735
|
+
}
|
|
6736
|
+
}
|
|
6737
|
+
}
|
|
6738
|
+
}
|
|
6739
|
+
}
|
|
6370
6740
|
}
|
|
6371
6741
|
},
|
|
6372
6742
|
"/api/{secretkey}/backup-sessions": {
|
|
@@ -6390,10 +6760,7 @@
|
|
|
6390
6760
|
"description": "A ZIP file contaings your backup. Please, open this link in your browser",
|
|
6391
6761
|
"content": {
|
|
6392
6762
|
"application/zip": {
|
|
6393
|
-
"schema": {
|
|
6394
|
-
"type": "string",
|
|
6395
|
-
"format": "binary"
|
|
6396
|
-
}
|
|
6763
|
+
"schema": {}
|
|
6397
6764
|
}
|
|
6398
6765
|
}
|
|
6399
6766
|
},
|
|
@@ -6494,24 +6861,6 @@
|
|
|
6494
6861
|
"type": "string",
|
|
6495
6862
|
"example": "NERDWHATS_AMERICA"
|
|
6496
6863
|
}
|
|
6497
|
-
},
|
|
6498
|
-
{
|
|
6499
|
-
"name": "obj",
|
|
6500
|
-
"in": "body",
|
|
6501
|
-
"schema": {
|
|
6502
|
-
"type": "object",
|
|
6503
|
-
"properties": {
|
|
6504
|
-
"type": {
|
|
6505
|
-
"type": "string",
|
|
6506
|
-
"example": "maxFileSize"
|
|
6507
|
-
},
|
|
6508
|
-
"value": {
|
|
6509
|
-
"type": "number",
|
|
6510
|
-
"example": 104857600
|
|
6511
|
-
}
|
|
6512
|
-
},
|
|
6513
|
-
"required": ["type", "value"]
|
|
6514
|
-
}
|
|
6515
6864
|
}
|
|
6516
6865
|
],
|
|
6517
6866
|
"responses": {
|
|
@@ -6526,7 +6875,34 @@
|
|
|
6526
6875
|
{
|
|
6527
6876
|
"bearerAuth": []
|
|
6528
6877
|
}
|
|
6529
|
-
]
|
|
6878
|
+
],
|
|
6879
|
+
"requestBody": {
|
|
6880
|
+
"required": true,
|
|
6881
|
+
"content": {
|
|
6882
|
+
"application/json": {
|
|
6883
|
+
"schema": {
|
|
6884
|
+
"type": "object",
|
|
6885
|
+
"properties": {
|
|
6886
|
+
"type": {
|
|
6887
|
+
"type": "string"
|
|
6888
|
+
},
|
|
6889
|
+
"value": {
|
|
6890
|
+
"type": "any"
|
|
6891
|
+
}
|
|
6892
|
+
},
|
|
6893
|
+
"required": ["type", "value"]
|
|
6894
|
+
},
|
|
6895
|
+
"examples": {
|
|
6896
|
+
"Default": {
|
|
6897
|
+
"value": {
|
|
6898
|
+
"type": "maxFileSize",
|
|
6899
|
+
"value": 104857600
|
|
6900
|
+
}
|
|
6901
|
+
}
|
|
6902
|
+
}
|
|
6903
|
+
}
|
|
6904
|
+
}
|
|
6905
|
+
}
|
|
6530
6906
|
}
|
|
6531
6907
|
},
|
|
6532
6908
|
"/api/{session}/create-community": {
|