forked from VKCOM/vk-api-schema
-
Notifications
You must be signed in to change notification settings - Fork 1
/
methods.json
15820 lines (15820 loc) · 461 KB
/
methods.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"errors": [
{
"name": "API_ERROR_UNKNOWN",
"code": 1,
"description": "Unknown error occurred"
},
{
"name": "API_ERROR_DISABLED",
"code": 2,
"description": "Application is disabled. Enable your application or use test mode"
},
{
"name": "API_ERROR_METHOD",
"code": 3,
"description": "Unknown method passed"
},
{
"name": "API_ERROR_SIGNATURE",
"code": 4,
"description": "Incorrect signature"
},
{
"name": "API_ERROR_AUTH",
"code": 5,
"description": "User authorization failed"
},
{
"name": "API_ERROR_TOO_MANY",
"code": 6,
"description": "Too many requests per second"
},
{
"name": "API_ERROR_PERMISSION",
"code": 7,
"description": "Permission to perform this action is denied"
},
{
"name": "API_ERROR_REQUEST",
"code": 8,
"description": "Invalid request"
},
{
"name": "API_ERROR_FLOOD",
"code": 9,
"description": "Flood control"
},
{
"name": "API_ERROR_SERVER",
"code": 10,
"description": "Internal server error"
},
{
"name": "API_ERROR_ENABLED_IN_TEST",
"code": 11,
"description": "In test mode application should be disabled or user should be authorized"
},
{
"name": "API_ERROR_CAPTCHA",
"code": 14,
"description": "Captcha needed"
},
{
"name": "API_ERROR_ACCESS",
"code": 15,
"description": "Access denied"
},
{
"name": "API_ERROR_AUTH_HTTPS",
"code": 16,
"description": "HTTP authorization failed"
},
{
"name": "API_ERROR_AUTH_VALIDATION",
"code": 17,
"description": "Validation required"
},
{
"name": "API_ERROR_METHOD_PERMISSION",
"code": 20,
"description": "Permission to perform this action is denied for non-standalone applications"
},
{
"name": "API_ERROR_METHOD_ADS",
"code": 21,
"description": "Permission to perform this action is allowed only for standalone and OpenAPI applications"
},
{
"name": "API_ERROR_METHOD_DISABLED",
"code": 23,
"description": "This method was disabled"
},
{
"name": "API_ERROR_NEED_CONFIRMATION",
"code": 24,
"description": "Confirmation required"
},
{
"name": "API_ERROR_VOTES_PERMISSION",
"code": 500,
"description": "Permission denied. You must enable votes processing in application settings"
},
{
"name": "API_ERROR_ACCESS_AUDIO",
"code": 201,
"description": "Access denied"
},
{
"name": "API_ERROR_ACCESS_GROUP",
"code": 203,
"description": "Access to group denied"
},
{
"name": "API_ERROR_PARAM_USER_ID",
"code": 113,
"description": "Invalid user id"
},
{
"name": "API_ERROR_PARAM",
"code": 100,
"description": "One of the parameters specified was missing or invalid"
},
{
"name": "API_ERROR_ALBUM_FULL",
"code": 300,
"description": "This album is full"
},
{
"name": "API_ERROR_ACCESS_ALBUM",
"code": 200,
"description": "Access denied"
},
{
"name": "API_ERROR_ADS_SPECIFIC",
"code": 603,
"description": "Some ads error occured"
},
{
"name": "API_ERROR_ADS_PERMISSION",
"code": 600,
"description": "Permission denied. You have no access to operations specified with given object(s)"
},
{
"name": "API_ERROR_PARAM_TIMESTAMP",
"code": 150,
"description": "Invalid timestamp"
},
{
"name": "API_ERROR_PARAM_API_ID",
"code": 101,
"description": "Invalid application API ID"
},
{
"name": "API_ERROR_USER_DELETED",
"code": 18,
"description": "User was deleted or banned"
}
],
"methods": [
{
"name": "users.get",
"description": "Returns detailed information on users.",
"open": true,
"parameters": [
{
"name": "user_ids",
"description": "User IDs or screen names ('screen_name'). By default, current user ID.",
"type": "array",
"items": {
"type": "string"
},
"maxItems": 1000
},
{
"name": "fields",
"description": "Profile fields to return. Sample values: 'nickname', 'screen_name', 'sex', 'bdate' (birthdate), 'city', 'country', 'timezone', 'photo', 'photo_medium', 'photo_big', 'has_mobile', 'contacts', 'education', 'online', 'counters', 'relation', 'last_seen', 'activity', 'can_write_private_message', 'can_see_all_posts', 'can_post', 'universities';",
"type": "array",
"items": {
"type": "string"
}
},
{
"name": "name_case",
"description": "Case for declension of user name and surname:; 'nom' — nominative (default); 'gen' — genitive ; 'dat' — dative; 'acc' — accusative ; 'ins' — instrumental ; 'abl' — prepositional",
"type": "string"
}
],
"responses": {
"response": {
"$ref": "responses.json#/definitions/users_get_response"
}
}
},
{
"name": "users.search",
"description": "Returns a list of users matching the search criteria.",
"parameters": [
{
"name": "q",
"description": "Search query string (e.g., 'Vasya Babich').",
"type": "string"
},
{
"name": "sort",
"description": "Sort order:; '1' — by date registered; '0' — by rating",
"type": "integer"
},
{
"name": "offset",
"description": "Offset needed to return a specific subset of users.",
"type": "integer",
"minimum": 0
},
{
"name": "count",
"description": "Number of users to return.",
"type": "integer",
"minimum": 0,
"default": 20,
"maximum": 1000
},
{
"name": "fields",
"description": "Profile fields to return. Sample values: 'nickname', 'screen_name', 'sex', 'bdate' (birthdate), 'city', 'country', 'timezone', 'photo', 'photo_medium', 'photo_big', 'has_mobile', 'rate', 'contacts', 'education', 'online';",
"type": "array",
"items": {
"type": "string"
}
},
{
"name": "city",
"description": "City ID.",
"type": "integer",
"minimum": 0
},
{
"name": "country",
"description": "Country ID.",
"type": "integer",
"minimum": 0
},
{
"name": "hometown",
"description": "City name in a string.",
"type": "string"
},
{
"name": "university_country",
"description": "ID of the country where the user graduated.",
"type": "integer",
"minimum": 0
},
{
"name": "university",
"description": "ID of the institution of higher education.",
"type": "integer",
"minimum": 0
},
{
"name": "university_year",
"description": "Year of graduation from an institution of higher education.",
"type": "integer",
"minimum": 0
},
{
"name": "university_faculty",
"description": "Faculty ID.",
"type": "integer",
"minimum": 0
},
{
"name": "university_chair",
"description": "Chair ID.",
"type": "integer",
"minimum": 0
},
{
"name": "sex",
"description": "'1' — female; '2' — male; '0' — any (default)",
"type": "integer",
"minimum": 0
},
{
"name": "status",
"description": "Relationship status:; '1' — Not married; '2' — In a relationship; '3' — Engaged; '4' — Married; '5' — It's complicated; '6' — Actively searching; '7' — In love",
"type": "integer",
"minimum": 0
},
{
"name": "age_from",
"description": "Minimum age.",
"type": "integer",
"minimum": 0
},
{
"name": "age_to",
"description": "Maximum age.",
"type": "integer",
"minimum": 0
},
{
"name": "birth_day",
"description": "Day of birth.",
"type": "integer",
"minimum": 0
},
{
"name": "birth_month",
"description": "Month of birth.",
"type": "integer",
"minimum": 0
},
{
"name": "birth_year",
"description": "Year of birth.",
"type": "integer",
"minimum": 0
},
{
"name": "online",
"description": "'1' — online only; '0' — all users",
"type": "boolean"
},
{
"name": "has_photo",
"description": "'1' — with photo only; '0' — all users",
"type": "boolean"
},
{
"name": "school_country",
"description": "ID of the country where users finished school.",
"type": "integer",
"minimum": 0
},
{
"name": "school_city",
"description": "ID of the city where users finished school.",
"type": "integer",
"minimum": 0
},
{
"name": "school_class",
"type": "integer",
"minimum": 0
},
{
"name": "school",
"description": "ID of the school.",
"type": "integer",
"minimum": 0
},
{
"name": "school_year",
"description": "School graduation year.",
"type": "integer",
"minimum": 0
},
{
"name": "religion",
"description": "Users' religious affiliation.",
"type": "string"
},
{
"name": "interests",
"description": "Users' interests.",
"type": "string"
},
{
"name": "company",
"description": "Name of the company where users work.",
"type": "string"
},
{
"name": "position",
"description": "Job position.",
"type": "string"
},
{
"name": "group_id",
"description": "ID of a community to search in communities.",
"type": "integer",
"minimum": 0
},
{
"name": "from_list",
"type": "array",
"items": {
"type": "string"
}
}
],
"responses": {
"response": {
"$ref": "responses.json#/definitions/users_search_response"
}
}
},
{
"name": "users.isAppUser",
"description": "Returns information whether a user installed the application.",
"parameters": [
{
"name": "user_id",
"type": "integer"
}
],
"responses": {
"response": {
"$ref": "responses.json#/definitions/users_isAppUser_response"
}
}
},
{
"name": "users.getSubscriptions",
"description": "Returns a list of IDs of users and communities followed by the user.",
"open": true,
"parameters": [
{
"name": "user_id",
"description": "User ID.",
"type": "integer",
"minimum": 0
},
{
"name": "extended",
"description": "'1' — to return a combined list of users and communities; '0' — to return separate lists of users and communities (default)",
"type": "boolean"
},
{
"name": "offset",
"description": "Offset needed to return a specific subset of subscriptions.",
"type": "integer",
"minimum": 0
},
{
"name": "count",
"description": "Number of users and communities to return.",
"type": "integer",
"minimum": 0,
"default": 20,
"maximum": 200
},
{
"name": "fields",
"type": "array",
"items": {
"type": "string"
}
}
],
"responses": {
"response": {
"$ref": "responses.json#/definitions/users_getSubscriptions_response"
},
"extendedResponse": {
"$ref": "responses.json#/definitions/users_getSubscriptions_extended_response"
}
}
},
{
"name": "users.getFollowers",
"description": "Returns a list of IDs of followers of the user in question, sorted by date added, most recent first.",
"open": true,
"parameters": [
{
"name": "user_id",
"description": "User ID.",
"type": "integer",
"minimum": 0
},
{
"name": "offset",
"description": "Offset needed to return a specific subset of followers.",
"type": "integer",
"minimum": 0
},
{
"name": "count",
"description": "Number of followers to return.",
"type": "integer",
"minimum": 0,
"default": 100,
"maximum": 1000
},
{
"name": "fields",
"description": "Profile fields to return. Sample values: 'nickname', 'screen_name', 'sex', 'bdate' (birthdate), 'city', 'country', 'timezone', 'photo', 'photo_medium', 'photo_big', 'has_mobile', 'rate', 'contacts', 'education', 'online'.;",
"type": "array",
"items": {
"type": "string"
}
},
{
"name": "name_case",
"description": "Case for declension of user name and surname:; 'nom' — nominative (default); 'gen' — genitive ; 'dat' — dative; 'acc' — accusative ; 'ins' — instrumental ; 'abl' — prepositional",
"type": "string"
}
],
"responses": {
"response": {
"$ref": "responses.json#/definitions/users_getFollowers_response"
}
}
},
{
"name": "users.report",
"description": "Reports (submits a complain about) a user.;",
"parameters": [
{
"name": "user_id",
"description": "ID of the user about whom a complaint is being made.",
"type": "integer",
"minimum": 0,
"required": true
},
{
"name": "type",
"description": "Type of complaint:; 'porn' – pornography; 'spam' – spamming; 'insult' – abusive behavior; 'advertisment' – disruptive advertisements",
"type": "string",
"required": true
},
{
"name": "comment",
"description": "Comment describing the complaint.",
"type": "string"
}
],
"responses": {
"response": {
"$ref": "responses.json#/definitions/users_report_response"
}
}
},
{
"name": "users.getNearby",
"description": "Indexes current user location and returns nearby users.",
"parameters": [
{
"name": "latitude",
"description": "geographic latitude of the place a user is located, in degrees (from -90 to 90)",
"type": "number",
"required": true
},
{
"name": "longitude",
"description": "geographic longitude of the place a user is located, in degrees (from -180 to 180)",
"type": "number",
"required": true
},
{
"name": "accuracy",
"description": "current location accuracy in meters",
"type": "integer",
"minimum": 0
},
{
"name": "timeout",
"description": "time when a user disappears from location search results, in seconds",
"type": "integer",
"minimum": 0,
"default": 7200
},
{
"name": "radius",
"description": "search zone radius type (1 to 4); :* 1 – 300 m;; :* 2 – 2400 m;; :* 3 – 18 km;; :* 4 – 150 km.",
"type": "integer",
"minimum": 0,
"default": 1
},
{
"name": "fields",
"description": "list of additional fields to return.; Available values: sex, bdate, city, country, photo_50, photo_100, photo_200_orig, photo_200, photo_400_orig, photo_max, photo_max_orig, online, online_mobile, domain, has_mobile, contacts, connections, site, education, universities, schools, can_post, can_see_all_posts, can_see_audio, can_write_private_message, status, last_seen, common_count, relation, relatives, counters, screen_name, maiden_name, timezone, occupation",
"type": "array",
"items": {
"type": "string"
}
},
{
"name": "name_case",
"description": "Case for declension of user name and surname: ; nom –nominative (default) ; gen – genitive ; dat – dative ; acc – accusative ; ins – instrumental ; abl – prepositional",
"type": "string"
}
],
"responses": {
"response": {
"$ref": "responses.json#/definitions/users_getNearby_response"
}
}
},
{
"name": "auth.checkPhone",
"description": "Checks a user's phone number for correctness.",
"open": true,
"parameters": [
{
"name": "phone",
"description": "Phone number.",
"type": "string",
"required": true
},
{
"name": "client_id",
"description": "User ID.",
"type": "integer"
},
{
"name": "client_secret",
"type": "string",
"required": true
},
{
"name": "auth_by_phone",
"type": "boolean"
}
],
"errors": [
{
"name": "API_ERROR_PHONE_ALREADY_USED",
"code": 1004,
"description": "This phone number is used by another user"
},
{
"name": "API_ERROR_AUTH_DELAY",
"code": 1112,
"description": "Processing.. Try later"
},
{
"name": "API_ERROR_PARAM_PHONE",
"code": 1000,
"description": "Invalid phone number"
}
],
"responses": {
"response": {
"$ref": "responses.json#/definitions/auth_checkPhone_response"
}
}
},
{
"name": "auth.signup",
"description": "Registers a new user by phone number.",
"open": true,
"parameters": [
{
"name": "first_name",
"description": "User's first name.",
"type": "string",
"required": true
},
{
"name": "last_name",
"description": "User's surname.",
"type": "string",
"required": true
},
{
"name": "client_id",
"description": "Your application ID.",
"type": "integer",
"required": true
},
{
"name": "client_secret",
"type": "string",
"required": true
},
{
"name": "phone",
"description": "User's phone number. Can be pre-checked with the method.",
"type": "string",
"required": true
},
{
"name": "password",
"description": "User's password (minimum of 6 characters). Can be specified later with the method.",
"type": "string"
},
{
"name": "test_mode",
"description": "'1' — test mode, in which the user will not be registered and the phone number will not be checked for availability; '0' — default mode (default)",
"type": "boolean"
},
{
"name": "voice",
"description": "'1' — call the phone number and leave a voice message of the authorization code; '0' — send the code by SMS (default)",
"type": "boolean"
},
{
"name": "sex",
"description": "'1' — female; '2' — male",
"type": "integer",
"minimum": 0
},
{
"name": "sid",
"description": "Session ID required for method recall when SMS was not delivered.",
"type": "string"
}
],
"errors": [
{
"name": "API_ERROR_PHONE_ALREADY_USED",
"code": 1004,
"description": "This phone number is used by another user"
},
{
"name": "API_ERROR_AUTH_DELAY",
"code": 1112,
"description": "Processing.. Try later"
},
{
"name": "API_ERROR_PARAM_PHONE",
"code": 1000,
"description": "Invalid phone number"
}
],
"responses": {
"response": {
"$ref": "responses.json#/definitions/auth_signup_response"
}
}
},
{
"name": "auth.confirm",
"description": "Completes a user's registration (begun with the method) using an authorization code.",
"open": true,
"parameters": [
{
"name": "client_id",
"type": "integer",
"required": true
},
{
"name": "client_secret",
"type": "string",
"required": true
},
{
"name": "phone",
"type": "string",
"required": true
},
{
"name": "code",
"type": "string",
"required": true
},
{
"name": "password",
"type": "string"
},
{
"name": "test_mode",
"type": "boolean"
},
{
"name": "intro",
"type": "integer",
"minimum": 0
}
],
"errors": [
{
"name": "API_ERROR_AUTH_PARAM_PASSWORD",
"code": 1111,
"description": "Invalid password"
},
{
"name": "API_ERROR_AUTH_PARAM_CODE",
"code": 1110,
"description": "Incorrect code"
}
],
"responses": {
"response": {
"$ref": "responses.json#/definitions/auth_confirm_response"
}
}
},
{
"name": "auth.restore",
"description": "Allows to restore account access using a code received via SMS.; ; \" This method is only available for apps with access. \"",
"open": true,
"parameters": [
{
"name": "phone",
"description": "user phone number.",
"type": "string",
"required": true
}
],
"errors": [
{
"name": "API_ERROR_AUTH_FLOOD_ERROR",
"code": 1105,
"description": "Too many auth attempts, try again later"
}
],
"responses": {
"response": {
"$ref": "responses.json#/definitions/auth_restore_response"
}
}
},
{
"name": "wall.get",
"description": "Returns a list of posts on a user wall or community wall.",
"open": true,
"parameters": [
{
"name": "owner_id",
"description": "ID of the user or community that owns the wall. By default, current user ID. Use a negative value to designate a community ID.",
"type": "integer"
},
{
"name": "domain",
"description": "User or community short address.",
"type": "string"
},
{
"name": "offset",
"description": "Offset needed to return a specific subset of posts.",
"type": "integer",
"minimum": 0
},
{
"name": "count",
"description": "Number of posts to return (maximum 100).",
"type": "integer",
"minimum": 0
},
{
"name": "filter",
"description": "Filter to apply:; 'owner' — posts by the wall owner; 'others' — posts by someone else; 'all' — posts by the wall owner and others (default); 'postponed' — timed posts (only available for calls with an 'access_token'); 'suggests' — suggested posts on a community wall",
"type": "string"
},
{
"name": "extended",
"description": "'1' — to return 'wall', 'profiles', and 'groups' fields; '0' — to return no additional fields (default)",
"type": "boolean"
},
{
"name": "fields",
"type": "array",
"items": {
"type": "string"
}
}
],
"errors": [
{
"name": "API_ERROR_BLOCKED",
"code": 19,
"description": "Content blocked"
},
{
"name": "API_ERROR_USER_DELETED",
"code": 18,
"description": "User was deleted or banned"
}
],
"responses": {
"response": {
"$ref": "responses.json#/definitions/wall_get_response"
},
"extendedResponse": {
"$ref": "responses.json#/definitions/wall_get_extended_response"
}
}
},
{
"name": "wall.search",
"description": "Allows to search posts on user or community walls.",
"open": true,
"parameters": [
{
"name": "owner_id",
"description": "user or community id. ; \"Remember that for a community 'owner_id' must be negative.\"",
"type": "integer"
},
{
"name": "domain",
"description": "user or community screen name.",
"type": "string"
},
{
"name": "query",
"description": "search query string.",
"type": "string"
},
{
"name": "owners_only",
"description": "'1' – returns only page owner's posts.",
"type": "boolean"
},
{
"name": "count",
"description": "count of posts to return.",
"type": "integer",
"minimum": 0,
"default": 20,
"maximum": 100
},
{
"name": "extended",
"description": "show extended post info.",
"type": "boolean"
},
{
"name": "fields",
"type": "array",
"items": {
"type": "string"
}
}
],
"errors": [
{
"name": "API_ERROR_WALL_ACCESS_POST",
"code": 210,
"description": "Access to wall's post denied"
},
{
"name": "API_ERROR_USER_DELETED",
"code": 18,
"description": "User was deleted or banned"
}
],
"responses": {
"response": {
"$ref": "responses.json#/definitions/wall_search_response"
},
"extendedResponse": {
"$ref": "responses.json#/definitions/wall_search_extended_response"
}
}
},
{
"name": "photos.createAlbum",
"description": "Creates an empty photo album.",
"parameters": [
{
"name": "title",
"description": "Album title.",
"type": "string",
"required": true,
"minLength": 2
},
{
"name": "group_id",
"description": "ID of the community in which the album will be created.",
"type": "integer"
},
{
"name": "description",
"description": "Album description.",
"type": "string"
},
{
"name": "privacy_view",
"type": "array",
"items": {
"type": "string"
},
"default": 0
},
{
"name": "privacy_comment",
"type": "array",
"items": {
"type": "string"
},
"default": 0
},
{
"name": "upload_by_admins_only",
"type": "boolean"
},
{
"name": "comments_disabled",
"type": "boolean"
}
],
"errors": [
{
"name": "API_ERROR_ALBUMS_LIMIT",
"code": 302,
"description": "Albums number limit is reached"
}
],
"responses": {
"response": {
"$ref": "responses.json#/definitions/photos_createAlbum_response"
}
}
},
{
"name": "photos.editAlbum",
"description": "Edits information about a photo album.",
"parameters": [