import 'package:vrchat_dart_generated/api.dart';
All URIs are relative to https://api.vrchat.cloud/api/1
Method | HTTP request | Description |
---|---|---|
createWorld | POST /worlds | Create World |
deleteWorld | DELETE /worlds/{worldId} | Delete World |
getActiveWorlds | GET /worlds/active | List Active Worlds |
getFavoritedWorlds | GET /worlds/favorites | List Favorited Worlds |
getRecentWorlds | GET /worlds/recent | List Recent Worlds |
getWorld | GET /worlds/{worldId} | Get World by ID |
getWorldInstance | GET /worlds/{worldId}/{instanceId} | Get World Instance |
getWorldMetadata | GET /worlds/{worldId}/metadata | Get World Metadata |
getWorldPublishStatus | GET /worlds/{worldId}/publish | Get World Publish Status |
publishWorld | PUT /worlds/{worldId}/publish | Publish World |
searchWorlds | GET /worlds | Search All Worlds |
unpublishWorld | DELETE /worlds/{worldId}/publish | Unpublish World |
updateWorld | PUT /worlds/{worldId} | Update World |
World createWorld(createWorldRequest)
Create World
Create a new world. This endpoint requires assetUrl
to be a valid File object with .vrcw
file extension, and imageUrl
to be a valid File object with an image file extension.
import 'package:vrchat_dart_generated/api.dart';
final api = VrchatDartGenerated().getWorldsApi();
final CreateWorldRequest createWorldRequest = ; // CreateWorldRequest |
try {
final response = api.createWorld(createWorldRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling WorldsApi->createWorld: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
createWorldRequest | CreateWorldRequest | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteWorld(worldId)
Delete World
Delete a world. Notice a world is never fully "deleted", only its ReleaseStatus is set to "hidden" and the linked Files are deleted. The WorldID 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().getWorldsApi();
final String worldId = worldId_example; // String | Must be a valid world ID.
try {
api.deleteWorld(worldId);
} catch on DioException (e) {
print('Exception when calling WorldsApi->deleteWorld: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
worldId | String | Must be a valid world ID. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List getActiveWorlds(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform)
List Active Worlds
Search and list currently Active worlds 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().getWorldsApi();
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.
try {
final response = api.getActiveWorlds(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform);
print(response);
} catch on DioException (e) {
print('Exception when calling WorldsApi->getActiveWorlds: $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] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List getFavoritedWorlds(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId)
List Favorited Worlds
Search and list favorited worlds 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().getWorldsApi();
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.getFavoritedWorlds(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId);
print(response);
} catch on DioException (e) {
print('Exception when calling WorldsApi->getFavoritedWorlds: $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]
List getRecentWorlds(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId)
List Recent Worlds
Search and list recently visited worlds 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().getWorldsApi();
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.getRecentWorlds(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId);
print(response);
} catch on DioException (e) {
print('Exception when calling WorldsApi->getRecentWorlds: $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]
World getWorld(worldId)
Get World by ID
Get information about a specific World. Works unauthenticated but when so will always return 0
for certain fields.
import 'package:vrchat_dart_generated/api.dart';
final api = VrchatDartGenerated().getWorldsApi();
final String worldId = worldId_example; // String | Must be a valid world ID.
try {
final response = api.getWorld(worldId);
print(response);
} catch on DioException (e) {
print('Exception when calling WorldsApi->getWorld: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
worldId | String | Must be a valid world ID. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Instance getWorldInstance(worldId, instanceId)
Get World Instance
Returns a worlds instance.
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().getWorldsApi();
final String worldId = worldId_example; // String | Must be a valid world ID.
final String instanceId = instanceId_example; // String | Must be a valid instance ID.
try {
final response = api.getWorldInstance(worldId, instanceId);
print(response);
} catch on DioException (e) {
print('Exception when calling WorldsApi->getWorldInstance: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
worldId | String | Must be a valid world ID. | |
instanceId | String | Must be a valid instance ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorldMetadata getWorldMetadata(worldId)
Get World Metadata
Return a worlds custom metadata. This is currently believed to be unused. Metadata can be set with updateWorld
and can be any arbitrary object.
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().getWorldsApi();
final String worldId = worldId_example; // String | Must be a valid world ID.
try {
final response = api.getWorldMetadata(worldId);
print(response);
} catch on DioException (e) {
print('Exception when calling WorldsApi->getWorldMetadata: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
worldId | String | Must be a valid world ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorldPublishStatus getWorldPublishStatus(worldId)
Get World Publish Status
Returns a worlds publish status.
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().getWorldsApi();
final String worldId = worldId_example; // String | Must be a valid world ID.
try {
final response = api.getWorldPublishStatus(worldId);
print(response);
} catch on DioException (e) {
print('Exception when calling WorldsApi->getWorldPublishStatus: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
worldId | String | Must be a valid world ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
publishWorld(worldId)
Publish World
Publish a world. You can only publish one world per week.
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().getWorldsApi();
final String worldId = worldId_example; // String | Must be a valid world ID.
try {
api.publishWorld(worldId);
} catch on DioException (e) {
print('Exception when calling WorldsApi->publishWorld: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
worldId | String | Must be a valid world ID. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List searchWorlds(featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, fuzzy)
Search All Worlds
Search and list any worlds 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().getWorldsApi();
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 worlds.
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 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 bool fuzzy = true; // bool |
try {
final response = api.searchWorlds(featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, fuzzy);
print(response);
} catch on DioException (e) {
print('Exception when calling WorldsApi->searchWorlds: $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 worlds. |
[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] |
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] |
fuzzy | bool | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unpublishWorld(worldId)
Unpublish World
Unpublish a world.
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().getWorldsApi();
final String worldId = worldId_example; // String | Must be a valid world ID.
try {
api.unpublishWorld(worldId);
} catch on DioException (e) {
print('Exception when calling WorldsApi->unpublishWorld: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
worldId | String | Must be a valid world ID. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
World updateWorld(worldId, updateWorldRequest)
Update World
Update information about a specific World.
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().getWorldsApi();
final String worldId = worldId_example; // String | Must be a valid world ID.
final UpdateWorldRequest updateWorldRequest = ; // UpdateWorldRequest |
try {
final response = api.updateWorld(worldId, updateWorldRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling WorldsApi->updateWorld: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
worldId | String | Must be a valid world ID. | |
updateWorldRequest | UpdateWorldRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]