import 'package:vrchat_dart_generated/api.dart';All URIs are relative to https://api.vrchat.cloud/api/1
| Method | HTTP request | Description |
|---|---|---|
| createProp | POST /props | Create Prop |
| deleteProp | DELETE /props/{propId} | Delete Prop |
| getProp | GET /props/{propId} | Get Prop |
| getPropPublishStatus | GET /props/{propId}/publish | Get Prop Publish Status |
| listProps | GET /props | List Props |
| publishProp | PUT /props/{propId}/publish | Publish Prop |
| unpublishProp | DELETE /props/{propId}/publish | Unpublish Prop |
| updateProp | PUT /props/{propId} | Update Prop |
Prop createProp(createPropRequest)
Create Prop
Create a Prop and return the new Prop 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().getPropsApi();
final CreatePropRequest createPropRequest = ; // CreatePropRequest |
try {
final response = api.createProp(createPropRequest);
print(response);
} on DioException catch (e) {
print('Exception when calling PropsApi->createProp: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| createPropRequest | CreatePropRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteProp(propId)
Delete Prop
Delete a Prop.
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().getPropsApi();
final String propId = prop_829ba6f6-b837-49d9-b9a9-056b82103b58; // String | Prop ID.
try {
api.deleteProp(propId);
} on DioException catch (e) {
print('Exception when calling PropsApi->deleteProp: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| propId | String | Prop 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]
Prop getProp(propId)
Get Prop
Returns a Prop 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().getPropsApi();
final String propId = prop_829ba6f6-b837-49d9-b9a9-056b82103b58; // String | Prop ID.
try {
final response = api.getProp(propId);
print(response);
} on DioException catch (e) {
print('Exception when calling PropsApi->getProp: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| propId | String | Prop ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PropPublishStatus getPropPublishStatus(propId)
Get Prop Publish Status
Returns a PropPublishStatus 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().getPropsApi();
final String propId = prop_829ba6f6-b837-49d9-b9a9-056b82103b58; // String | Prop ID.
try {
final response = api.getPropPublishStatus(propId);
print(response);
} on DioException catch (e) {
print('Exception when calling PropsApi->getPropPublishStatus: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| propId | String | Prop ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List listProps(authorId, n, offset)
List Props
Returns a list Prop objects.
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().getPropsApi();
final String authorId = authorId_example; // String | Must be a valid user ID.
final int n = 56; // int | The number of objects to return.
final int offset = 56; // int | A zero-based offset from the default object sorting from where search results start.
try {
final response = api.listProps(authorId, n, offset);
print(response);
} on DioException catch (e) {
print('Exception when calling PropsApi->listProps: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| authorId | String | Must be a valid user ID. | |
| n | int | The number of objects to return. | [optional] [default to 60] |
| offset | int | A zero-based offset from the default object sorting from where search results start. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PropPublishStatus publishProp(propId)
Publish Prop
Publish a Prop and return the updated PropPublishStatus 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().getPropsApi();
final String propId = prop_829ba6f6-b837-49d9-b9a9-056b82103b58; // String | Prop ID.
try {
final response = api.publishProp(propId);
print(response);
} on DioException catch (e) {
print('Exception when calling PropsApi->publishProp: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| propId | String | Prop ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PropPublishStatus unpublishProp(propId)
Unpublish Prop
Unpublish a Prop and return the updated PropPublishStatus 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().getPropsApi();
final String propId = prop_829ba6f6-b837-49d9-b9a9-056b82103b58; // String | Prop ID.
try {
final response = api.unpublishProp(propId);
print(response);
} on DioException catch (e) {
print('Exception when calling PropsApi->unpublishProp: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| propId | String | Prop ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Prop updateProp(propId, updatePropRequest)
Update Prop
Updates a Prop and returns the updated Prop object. When updating the asset bundle, all of name, assetUrl, platform, unityVersion, assetVersion, spawnType, and worldPlacementMask must be present, as well as propSignature if this value is not blank.
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().getPropsApi();
final String propId = prop_829ba6f6-b837-49d9-b9a9-056b82103b58; // String | Prop ID.
final UpdatePropRequest updatePropRequest = ; // UpdatePropRequest |
try {
final response = api.updateProp(propId, updatePropRequest);
print(response);
} on DioException catch (e) {
print('Exception when calling PropsApi->updateProp: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| propId | String | Prop ID. | |
| updatePropRequest | UpdatePropRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]