422 lines
13 KiB
Markdown
422 lines
13 KiB
Markdown
# AvatarsApi
|
|
|
|
All URIs are relative to *https://api.vrchat.cloud/api/1*
|
|
|
|
| Method | HTTP request | Description |
|
|
|------------- | ------------- | -------------|
|
|
| [**createAvatar**](AvatarsApi.md#createAvatar) | **POST** /avatars | Create Avatar |
|
|
| [**deleteAvatar**](AvatarsApi.md#deleteAvatar) | **DELETE** /avatars/{avatarId} | Delete Avatar |
|
|
| [**deleteImpostor**](AvatarsApi.md#deleteImpostor) | **DELETE** /avatars/{avatarId}/impostor | Delete generated Impostor |
|
|
| [**enqueueImpostor**](AvatarsApi.md#enqueueImpostor) | **POST** /avatars/{avatarId}/impostor/enqueue | Enqueue Impostor generation |
|
|
| [**getAvatar**](AvatarsApi.md#getAvatar) | **GET** /avatars/{avatarId} | Get Avatar |
|
|
| [**getAvatarStyles**](AvatarsApi.md#getAvatarStyles) | **GET** /avatarStyles | Get Avatar Styles |
|
|
| [**getFavoritedAvatars**](AvatarsApi.md#getFavoritedAvatars) | **GET** /avatars/favorites | List Favorited Avatars |
|
|
| [**getImpostorQueueStats**](AvatarsApi.md#getImpostorQueueStats) | **GET** /avatars/impostor/queue/stats | Get Impostor Queue Stats |
|
|
| [**getLicensedAvatars**](AvatarsApi.md#getLicensedAvatars) | **GET** /avatars/licensed | List Licensed Avatars |
|
|
| [**getOwnAvatar**](AvatarsApi.md#getOwnAvatar) | **GET** /users/{userId}/avatar | Get Own Avatar |
|
|
| [**searchAvatars**](AvatarsApi.md#searchAvatars) | **GET** /avatars | Search Avatars |
|
|
| [**selectAvatar**](AvatarsApi.md#selectAvatar) | **PUT** /avatars/{avatarId}/select | Select Avatar |
|
|
| [**selectFallbackAvatar**](AvatarsApi.md#selectFallbackAvatar) | **PUT** /avatars/{avatarId}/selectFallback | Select Fallback Avatar |
|
|
| [**updateAvatar**](AvatarsApi.md#updateAvatar) | **PUT** /avatars/{avatarId} | Update Avatar |
|
|
|
|
|
|
<a name="createAvatar"></a>
|
|
# **createAvatar**
|
|
> 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.
|
|
|
|
### Parameters
|
|
|
|
|Name | Type | Description | Notes |
|
|
|------------- | ------------- | ------------- | -------------|
|
|
| **CreateAvatarRequest** | [**CreateAvatarRequest**](../Models/CreateAvatarRequest.md)| | [optional] |
|
|
|
|
### Return type
|
|
|
|
[**Avatar**](../Models/Avatar.md)
|
|
|
|
### Authorization
|
|
|
|
[authCookie](../README.md#authCookie)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: application/json
|
|
- **Accept**: application/json
|
|
|
|
<a name="deleteAvatar"></a>
|
|
# **deleteAvatar**
|
|
> 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.
|
|
|
|
### Parameters
|
|
|
|
|Name | Type | Description | Notes |
|
|
|------------- | ------------- | ------------- | -------------|
|
|
| **avatarId** | **String**| Must be a valid avatar ID. | [default to null] |
|
|
|
|
### Return type
|
|
|
|
[**Avatar**](../Models/Avatar.md)
|
|
|
|
### Authorization
|
|
|
|
[authCookie](../README.md#authCookie)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
<a name="deleteImpostor"></a>
|
|
# **deleteImpostor**
|
|
> deleteImpostor(avatarId)
|
|
|
|
Delete generated Impostor
|
|
|
|
Delete generated Impostor for that avatar.
|
|
|
|
### Parameters
|
|
|
|
|Name | Type | Description | Notes |
|
|
|------------- | ------------- | ------------- | -------------|
|
|
| **avatarId** | **String**| Must be a valid avatar ID. | [default to null] |
|
|
|
|
### Return type
|
|
|
|
null (empty response body)
|
|
|
|
### Authorization
|
|
|
|
[authCookie](../README.md#authCookie)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
<a name="enqueueImpostor"></a>
|
|
# **enqueueImpostor**
|
|
> ServiceStatus enqueueImpostor(avatarId)
|
|
|
|
Enqueue Impostor generation
|
|
|
|
Enqueue Impostor generation for that avatar.
|
|
|
|
### Parameters
|
|
|
|
|Name | Type | Description | Notes |
|
|
|------------- | ------------- | ------------- | -------------|
|
|
| **avatarId** | **String**| Must be a valid avatar ID. | [default to null] |
|
|
|
|
### Return type
|
|
|
|
[**ServiceStatus**](../Models/ServiceStatus.md)
|
|
|
|
### Authorization
|
|
|
|
[authCookie](../README.md#authCookie)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
<a name="getAvatar"></a>
|
|
# **getAvatar**
|
|
> Avatar getAvatar(avatarId)
|
|
|
|
Get Avatar
|
|
|
|
Get information about a specific Avatar.
|
|
|
|
### Parameters
|
|
|
|
|Name | Type | Description | Notes |
|
|
|------------- | ------------- | ------------- | -------------|
|
|
| **avatarId** | **String**| Must be a valid avatar ID. | [default to null] |
|
|
|
|
### Return type
|
|
|
|
[**Avatar**](../Models/Avatar.md)
|
|
|
|
### Authorization
|
|
|
|
[authCookie](../README.md#authCookie)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
<a name="getAvatarStyles"></a>
|
|
# **getAvatarStyles**
|
|
> List getAvatarStyles()
|
|
|
|
Get Avatar Styles
|
|
|
|
List avatar styles.
|
|
|
|
### Parameters
|
|
This endpoint does not need any parameter.
|
|
|
|
### Return type
|
|
|
|
[**List**](../Models/AvatarStyle.md)
|
|
|
|
### Authorization
|
|
|
|
No authorization required
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
<a name="getFavoritedAvatars"></a>
|
|
# **getFavoritedAvatars**
|
|
> 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.
|
|
|
|
### Parameters
|
|
|
|
|Name | Type | Description | Notes |
|
|
|------------- | ------------- | ------------- | -------------|
|
|
| **featured** | **Boolean**| Filters on featured results. | [optional] [default to null] |
|
|
| **sort** | **String**| The sort order of the results. | [optional] [default to popularity] [enum: _created_at, _updated_at, created, favorites, heat, labsPublicationDate, magic, name, order, popularity, publicationDate, random, relevance, reportCount, reportScore, shuffle, trust, updated] |
|
|
| **n** | **Integer**| The number of objects to return. | [optional] [default to 60] |
|
|
| **order** | **String**| Result ordering | [optional] [default to descending] [enum: ascending, descending] |
|
|
| **offset** | **Integer**| A zero-based offset from the default object sorting from where search results start. | [optional] [default to null] |
|
|
| **search** | **String**| Filters by world name. | [optional] [default to null] |
|
|
| **tag** | **String**| Tags to include (comma-separated). Any of the tags needs to be present. | [optional] [default to null] |
|
|
| **notag** | **String**| Tags to exclude (comma-separated). | [optional] [default to null] |
|
|
| **releaseStatus** | **String**| Filter by ReleaseStatus. | [optional] [default to public] [enum: all, hidden, private, public] |
|
|
| **maxUnityVersion** | **String**| The maximum Unity version supported by the asset. | [optional] [default to null] |
|
|
| **minUnityVersion** | **String**| The minimum Unity version supported by the asset. | [optional] [default to null] |
|
|
| **platform** | **String**| The platform the asset supports. | [optional] [default to null] |
|
|
| **userId** | **String**| Target user to see information on, admin-only. | [optional] [default to null] |
|
|
|
|
### Return type
|
|
|
|
[**List**](../Models/Avatar.md)
|
|
|
|
### Authorization
|
|
|
|
[authCookie](../README.md#authCookie)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
<a name="getImpostorQueueStats"></a>
|
|
# **getImpostorQueueStats**
|
|
> ServiceQueueStats getImpostorQueueStats()
|
|
|
|
Get Impostor Queue Stats
|
|
|
|
Gets service stats for queued impostor.
|
|
|
|
### Parameters
|
|
This endpoint does not need any parameter.
|
|
|
|
### Return type
|
|
|
|
[**ServiceQueueStats**](../Models/ServiceQueueStats.md)
|
|
|
|
### Authorization
|
|
|
|
[authCookie](../README.md#authCookie)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
<a name="getLicensedAvatars"></a>
|
|
# **getLicensedAvatars**
|
|
> List getLicensedAvatars(n, offset)
|
|
|
|
List Licensed Avatars
|
|
|
|
List licensed avatars.
|
|
|
|
### Parameters
|
|
|
|
|Name | Type | Description | Notes |
|
|
|------------- | ------------- | ------------- | -------------|
|
|
| **n** | **Integer**| The number of objects to return. | [optional] [default to 60] |
|
|
| **offset** | **Integer**| A zero-based offset from the default object sorting from where search results start. | [optional] [default to null] |
|
|
|
|
### Return type
|
|
|
|
[**List**](../Models/Avatar.md)
|
|
|
|
### Authorization
|
|
|
|
[authCookie](../README.md#authCookie)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
<a name="getOwnAvatar"></a>
|
|
# **getOwnAvatar**
|
|
> 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.
|
|
|
|
### Parameters
|
|
|
|
|Name | Type | Description | Notes |
|
|
|------------- | ------------- | ------------- | -------------|
|
|
| **userId** | **String**| Must be a valid user ID. | [default to null] |
|
|
|
|
### Return type
|
|
|
|
[**Avatar**](../Models/Avatar.md)
|
|
|
|
### Authorization
|
|
|
|
[authCookie](../README.md#authCookie)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
<a name="searchAvatars"></a>
|
|
# **searchAvatars**
|
|
> List searchAvatars(featured, sort, user, userId, n, order, offset, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, isInternalVariant)
|
|
|
|
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.
|
|
|
|
### Parameters
|
|
|
|
|Name | Type | Description | Notes |
|
|
|------------- | ------------- | ------------- | -------------|
|
|
| **featured** | **Boolean**| Filters on featured results. | [optional] [default to null] |
|
|
| **sort** | **String**| The sort order of the results. | [optional] [default to popularity] [enum: _created_at, _updated_at, created, favorites, heat, labsPublicationDate, magic, name, order, popularity, publicationDate, random, relevance, reportCount, reportScore, shuffle, trust, updated] |
|
|
| **user** | **String**| Set to `me` for searching own avatars. | [optional] [default to null] [enum: me] |
|
|
| **userId** | **String**| Filter by UserID. | [optional] [default to null] |
|
|
| **n** | **Integer**| The number of objects to return. | [optional] [default to 60] |
|
|
| **order** | **String**| Result ordering | [optional] [default to descending] [enum: ascending, descending] |
|
|
| **offset** | **Integer**| A zero-based offset from the default object sorting from where search results start. | [optional] [default to null] |
|
|
| **tag** | **String**| Tags to include (comma-separated). Any of the tags needs to be present. | [optional] [default to null] |
|
|
| **notag** | **String**| Tags to exclude (comma-separated). | [optional] [default to null] |
|
|
| **releaseStatus** | **String**| Filter by ReleaseStatus. | [optional] [default to public] [enum: all, hidden, private, public] |
|
|
| **maxUnityVersion** | **String**| The maximum Unity version supported by the asset. | [optional] [default to null] |
|
|
| **minUnityVersion** | **String**| The minimum Unity version supported by the asset. | [optional] [default to null] |
|
|
| **platform** | **String**| The platform the asset supports. | [optional] [default to null] |
|
|
| **isInternalVariant** | **Boolean**| Not quite sure what this actually does (exists on the website but doesn't seem to be used) | [optional] [default to null] |
|
|
|
|
### Return type
|
|
|
|
[**List**](../Models/Avatar.md)
|
|
|
|
### Authorization
|
|
|
|
[authCookie](../README.md#authCookie)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
<a name="selectAvatar"></a>
|
|
# **selectAvatar**
|
|
> CurrentUser selectAvatar(avatarId)
|
|
|
|
Select Avatar
|
|
|
|
Switches into that avatar.
|
|
|
|
### Parameters
|
|
|
|
|Name | Type | Description | Notes |
|
|
|------------- | ------------- | ------------- | -------------|
|
|
| **avatarId** | **String**| Must be a valid avatar ID. | [default to null] |
|
|
|
|
### Return type
|
|
|
|
[**CurrentUser**](../Models/CurrentUser.md)
|
|
|
|
### Authorization
|
|
|
|
[authCookie](../README.md#authCookie)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
<a name="selectFallbackAvatar"></a>
|
|
# **selectFallbackAvatar**
|
|
> CurrentUser selectFallbackAvatar(avatarId)
|
|
|
|
Select Fallback Avatar
|
|
|
|
Switches into that avatar as your fallback avatar.
|
|
|
|
### Parameters
|
|
|
|
|Name | Type | Description | Notes |
|
|
|------------- | ------------- | ------------- | -------------|
|
|
| **avatarId** | **String**| Must be a valid avatar ID. | [default to null] |
|
|
|
|
### Return type
|
|
|
|
[**CurrentUser**](../Models/CurrentUser.md)
|
|
|
|
### Authorization
|
|
|
|
[authCookie](../README.md#authCookie)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
<a name="updateAvatar"></a>
|
|
# **updateAvatar**
|
|
> Avatar updateAvatar(avatarId, UpdateAvatarRequest)
|
|
|
|
Update Avatar
|
|
|
|
Update information about a specific avatar.
|
|
|
|
### Parameters
|
|
|
|
|Name | Type | Description | Notes |
|
|
|------------- | ------------- | ------------- | -------------|
|
|
| **avatarId** | **String**| Must be a valid avatar ID. | [default to null] |
|
|
| **UpdateAvatarRequest** | [**UpdateAvatarRequest**](../Models/UpdateAvatarRequest.md)| | [optional] |
|
|
|
|
### Return type
|
|
|
|
[**Avatar**](../Models/Avatar.md)
|
|
|
|
### Authorization
|
|
|
|
[authCookie](../README.md#authCookie)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: application/json
|
|
- **Accept**: application/json
|
|
|