import 'package:vrchat_dart_generated/api.dart';
All URIs are relative to https://api.vrchat.cloud/api/1
Method | HTTP request | Description |
---|---|---|
createAvatar | POST /avatars | Create Avatar |
deleteAvatar | DELETE /avatars/{avatarId} | Delete Avatar |
getAvatar | GET /avatars/{avatarId} | Get Avatar |
getFavoritedAvatars | GET /avatars/favorites | List Favorited Avatars |
getOwnAvatar | GET /users/{userId}/avatar | Get Own Avatar |
searchAvatars | GET /avatars | Search Avatars |
selectAvatar | PUT /avatars/{avatarId}/select | Select Avatar |
selectFallbackAvatar | PUT /avatars/{avatarId}/selectFallback | Select Fallback Avatar |
updateAvatar | PUT /avatars/{avatarId} | Update Avatar |
Avatar createAvatar(createAvatarRequest)
Create Avatar
Create an avatar. It's possible to optionally specify a ID if you want a custom one. Attempting to create an Avatar with an already claimed ID will result in a DB error.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getAvatarsApi();
final CreateAvatarRequest createAvatarRequest = ; // CreateAvatarRequest |
try {
final response = api.createAvatar(createAvatarRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling AvatarsApi->createAvatar: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
createAvatarRequest | CreateAvatarRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Avatar deleteAvatar(avatarId)
Delete Avatar
Delete an avatar. Notice an avatar is never fully "deleted", only its ReleaseStatus is set to "hidden" and the linked Files are deleted. The AvatarID is permanently reserved.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getAvatarsApi();
final String avatarId = avatarId_example; // String | Must be a valid avatar ID.
try {
final response = api.deleteAvatar(avatarId);
print(response);
} catch on DioException (e) {
print('Exception when calling AvatarsApi->deleteAvatar: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
avatarId | String | Must be a valid avatar ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Avatar getAvatar(avatarId)
Get Avatar
Get information about a specific Avatar.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getAvatarsApi();
final String avatarId = avatarId_example; // String | Must be a valid avatar ID.
try {
final response = api.getAvatar(avatarId);
print(response);
} catch on DioException (e) {
print('Exception when calling AvatarsApi->getAvatar: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
avatarId | String | Must be a valid avatar ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List getFavoritedAvatars(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId)
List Favorited Avatars
Search and list favorited avatars by query filters.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getAvatarsApi();
final bool featured = true; // bool | Filters on featured results.
final SortOption sort = ; // SortOption | The sort order of the results.
final int n = 56; // int | The number of objects to return.
final OrderOption order = ; // OrderOption | Result ordering
final int offset = 56; // int | A zero-based offset from the default object sorting from where search results start.
final String search = search_example; // String | Filters by world name.
final String tag = tag_example; // String | Tags to include (comma-separated). Any of the tags needs to be present.
final String notag = notag_example; // String | Tags to exclude (comma-separated).
final ReleaseStatus releaseStatus = ; // ReleaseStatus | Filter by ReleaseStatus.
final String maxUnityVersion = maxUnityVersion_example; // String | The maximum Unity version supported by the asset.
final String minUnityVersion = minUnityVersion_example; // String | The minimum Unity version supported by the asset.
final String platform = platform_example; // String | The platform the asset supports.
final String userId = userId_example; // String | Target user to see information on, admin-only.
try {
final response = api.getFavoritedAvatars(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId);
print(response);
} catch on DioException (e) {
print('Exception when calling AvatarsApi->getFavoritedAvatars: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
featured | bool | Filters on featured results. | [optional] |
sort | SortOption | The sort order of the results. | [optional] |
n | int | The number of objects to return. | [optional] [default to 60] |
order | OrderOption | Result ordering | [optional] |
offset | int | A zero-based offset from the default object sorting from where search results start. | [optional] |
search | String | Filters by world name. | [optional] |
tag | String | Tags to include (comma-separated). Any of the tags needs to be present. | [optional] |
notag | String | Tags to exclude (comma-separated). | [optional] |
releaseStatus | ReleaseStatus | Filter by ReleaseStatus. | [optional] |
maxUnityVersion | String | The maximum Unity version supported by the asset. | [optional] |
minUnityVersion | String | The minimum Unity version supported by the asset. | [optional] |
platform | String | The platform the asset supports. | [optional] |
userId | String | Target user to see information on, admin-only. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Avatar getOwnAvatar(userId)
Get Own Avatar
Get the current avatar for the user. This will return an error for any other user than the one logged in.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getAvatarsApi();
final String userId = userId_example; // String | Must be a valid user ID.
try {
final response = api.getOwnAvatar(userId);
print(response);
} catch on DioException (e) {
print('Exception when calling AvatarsApi->getOwnAvatar: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | Must be a valid user ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List searchAvatars(featured, sort, user, userId, n, order, offset, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform)
Search Avatars
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.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getAvatarsApi();
final bool featured = true; // bool | Filters on featured results.
final SortOption sort = ; // SortOption | The sort order of the results.
final String user = user_example; // String | Set to `me` for searching own avatars.
final String userId = userId_example; // String | Filter by UserID.
final int n = 56; // int | The number of objects to return.
final OrderOption order = ; // OrderOption | Result ordering
final int offset = 56; // int | A zero-based offset from the default object sorting from where search results start.
final String tag = tag_example; // String | Tags to include (comma-separated). Any of the tags needs to be present.
final String notag = notag_example; // String | Tags to exclude (comma-separated).
final ReleaseStatus releaseStatus = ; // ReleaseStatus | Filter by ReleaseStatus.
final String maxUnityVersion = maxUnityVersion_example; // String | The maximum Unity version supported by the asset.
final String minUnityVersion = minUnityVersion_example; // String | The minimum Unity version supported by the asset.
final String platform = platform_example; // String | The platform the asset supports.
try {
final response = api.searchAvatars(featured, sort, user, userId, n, order, offset, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform);
print(response);
} catch on DioException (e) {
print('Exception when calling AvatarsApi->searchAvatars: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
featured | bool | Filters on featured results. | [optional] |
sort | SortOption | The sort order of the results. | [optional] |
user | String | Set to me for searching own avatars. |
[optional] |
userId | String | Filter by UserID. | [optional] |
n | int | The number of objects to return. | [optional] [default to 60] |
order | OrderOption | Result ordering | [optional] |
offset | int | A zero-based offset from the default object sorting from where search results start. | [optional] |
tag | String | Tags to include (comma-separated). Any of the tags needs to be present. | [optional] |
notag | String | Tags to exclude (comma-separated). | [optional] |
releaseStatus | ReleaseStatus | Filter by ReleaseStatus. | [optional] |
maxUnityVersion | String | The maximum Unity version supported by the asset. | [optional] |
minUnityVersion | String | The minimum Unity version supported by the asset. | [optional] |
platform | String | The platform the asset supports. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CurrentUser selectAvatar(avatarId)
Select Avatar
Switches into that avatar.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getAvatarsApi();
final String avatarId = avatarId_example; // String | Must be a valid avatar ID.
try {
final response = api.selectAvatar(avatarId);
print(response);
} catch on DioException (e) {
print('Exception when calling AvatarsApi->selectAvatar: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
avatarId | String | Must be a valid avatar ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CurrentUser selectFallbackAvatar(avatarId)
Select Fallback Avatar
Switches into that avatar as your fallback avatar.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getAvatarsApi();
final String avatarId = avatarId_example; // String | Must be a valid avatar ID.
try {
final response = api.selectFallbackAvatar(avatarId);
print(response);
} catch on DioException (e) {
print('Exception when calling AvatarsApi->selectFallbackAvatar: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
avatarId | String | Must be a valid avatar ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Avatar updateAvatar(avatarId, updateAvatarRequest)
Update Avatar
Update information about a specific avatar.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getAvatarsApi();
final String avatarId = avatarId_example; // String | Must be a valid avatar ID.
final UpdateAvatarRequest updateAvatarRequest = ; // UpdateAvatarRequest |
try {
final response = api.updateAvatar(avatarId, updateAvatarRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling AvatarsApi->updateAvatar: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
avatarId | String | Must be a valid avatar ID. | |
updateAvatarRequest | UpdateAvatarRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]