You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 74d545a
Browse filesBrowse the repository at this point in the historyBrowse files
Search and list avatars by query filters. You can only search your own or featured avatars. It is not possible as a normal user to search other peoples avatars.
753
+
Search and list avatars by query filters. Without `marketplace`, you can only search your own or featured avatars.
754
754
755
755
### Example
756
756
```java
@@ -788,8 +788,16 @@ public class Example {
788
788
String minUnityVersion ="minUnityVersion_example"; // String | The minimum Unity version supported by the asset.
789
789
String platform ="platform_example"; // String | The platform the asset supports.
790
790
Boolean isInternalVariant =true; // Boolean | Not quite sure what this actually does (exists on the website but doesn't seem to be used)
791
+
SearchAvatarsMarketplace marketplace =SearchAvatarsMarketplace.fromValue("all"); // SearchAvatarsMarketplace | Search avatars listed in the marketplace.
792
+
String search ="search_example"; // String | Text to search for. Requires `marketplace`.
793
+
Boolean metadata =true; // Boolean | Wrap the results in an AvatarList.
794
+
Integer minPrice =56; // Integer |
795
+
Integer maxPrice =56; // Integer |
796
+
Integer performanceAtLeast =56; // Integer |
797
+
Integer minAssetVersion =56; // Integer |
798
+
Integer maxAssetVersion =56; // Integer |
791
799
try {
792
-
List<Avatar> result = apiInstance.searchAvatars(featured, sort, user, userId, n, order, offset, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, isInternalVariant);
System.err.println("Exception when calling AvatarsApi#searchAvatars");
@@ -820,10 +828,18 @@ public class Example {
820
828
|**minUnityVersion**|**String**| The minimum Unity version supported by the asset. |[optional]|
821
829
|**platform**|**String**| The platform the asset supports. |[optional]|
822
830
|**isInternalVariant**|**Boolean**| Not quite sure what this actually does (exists on the website but doesn't seem to be used) |[optional]|
831
+
|**marketplace**|[**SearchAvatarsMarketplace**](.md)| Search avatars listed in the marketplace. |[optional][enum: all, free, paid]|
832
+
|**search**|**String**| Text to search for. Requires `marketplace`. |[optional]|
833
+
|**metadata**|**Boolean**| Wrap the results in an AvatarList. |[optional]|
834
+
|**minPrice**|**Integer**||[optional]|
835
+
|**maxPrice**|**Integer**||[optional]|
836
+
|**performanceAtLeast**|**Integer**||[optional]|
837
+
|**minAssetVersion**|**Integer**||[optional]|
838
+
|**maxAssetVersion**|**Integer**||[optional]|
823
839
824
840
### Return type
825
841
826
-
[**List<Avatar>**](Avatar.md)
842
+
[**SearchAvatarsResult**](SearchAvatarsResult.md)
827
843
828
844
### Authorization
829
845
@@ -837,7 +853,7 @@ public class Example {
837
853
### HTTP response details
838
854
| Status code | Description | Response headers |
839
855
|-------------|-------------|------------------|
840
-
|**200**|| - |
856
+
|**200**|Returns a list of Avatar objects, wrapped in a paginated object when `metadata` is `true`.| - |
841
857
|**400**| The request failed validation. VRChat validates the request before it looks up the resource, so this response is returned even when the ID in the path does not exist. The message names the offending field or parameter. | - |
842
858
|**401**| Error response due to missing auth cookie. | - |
|**n**|**Integer**| The number of objects to return. |[optional][default to 60]|
1152
+
|**offset**|**Integer**| A zero-based offset from the default object sorting from where search results start. |[optional]|
1153
+
1154
+
### Return type
1155
+
1156
+
**List<Object>**
1157
+
1158
+
### Authorization
1159
+
1160
+
[authCookie](../README.md#authCookie)
1161
+
1162
+
### HTTP request headers
1163
+
1164
+
-**Content-Type**: Not defined
1165
+
-**Accept**: application/json
1166
+
1167
+
### HTTP response details
1168
+
| Status code | Description | Response headers |
1169
+
|-------------|-------------|------------------|
1170
+
|**200**|| - |
1171
+
|**400**| The request failed validation. VRChat validates the request before it looks up the resource, so this response is returned even when the ID in the path does not exist. The message names the offending field or parameter. | - |
1172
+
|**401**| Error response due to missing auth cookie. | - |
1173
+
|**403**| Error response when requesting another user's economy subscriptions. | - |
0 commit comments