Skip to content

Commit 1c73e19

Browse files
committed
Upgrade C# SDK to spec 1.19.4
1 parent ec8522b commit 1c73e19

246 files changed

Lines changed: 1355 additions & 1044 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openapi-generator/FILES

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ docs/LimitedUser.md
136136
docs/LimitedUserGroups.md
137137
docs/LimitedWorld.md
138138
docs/MIMEType.md
139+
docs/MiscellaneousApi.md
139140
docs/ModerateUserRequest.md
140141
docs/Notification.md
141142
docs/NotificationDetailInvite.md
@@ -152,7 +153,6 @@ docs/Pending2FAResult.md
152153
docs/PerformanceLimiterInfo.md
153154
docs/PerformanceRatings.md
154155
docs/Permission.md
155-
docs/PermissionsApi.md
156156
docs/PlatformBuildInfo.md
157157
docs/PlayerModeration.md
158158
docs/PlayerModerationType.md
@@ -182,7 +182,6 @@ docs/Submission.md
182182
docs/Subscription.md
183183
docs/SubscriptionPeriod.md
184184
docs/Success.md
185-
docs/SystemApi.md
186185
docs/TiliaStatus.md
187186
docs/TiliaTOS.md
188187
docs/TokenBundle.md
@@ -200,6 +199,7 @@ docs/UpdateAvatarRequest.md
200199
docs/UpdateFavoriteGroupRequest.md
201200
docs/UpdateGroupGalleryRequest.md
202201
docs/UpdateGroupMemberRequest.md
202+
docs/UpdateGroupRepresentationRequest.md
203203
docs/UpdateGroupRequest.md
204204
docs/UpdateGroupRoleRequest.md
205205
docs/UpdateInviteMessageRequest.md
@@ -233,11 +233,10 @@ src/VRChat.API/Api/GroupsApi.cs
233233
src/VRChat.API/Api/InstancesApi.cs
234234
src/VRChat.API/Api/InviteApi.cs
235235
src/VRChat.API/Api/JamsApi.cs
236+
src/VRChat.API/Api/MiscellaneousApi.cs
236237
src/VRChat.API/Api/NotificationsApi.cs
237-
src/VRChat.API/Api/PermissionsApi.cs
238238
src/VRChat.API/Api/PlayermoderationApi.cs
239239
src/VRChat.API/Api/PrintsApi.cs
240-
src/VRChat.API/Api/SystemApi.cs
241240
src/VRChat.API/Api/UsersApi.cs
242241
src/VRChat.API/Api/WorldsApi.cs
243242
src/VRChat.API/Client/ApiClient.cs
@@ -442,6 +441,7 @@ src/VRChat.API/Model/UpdateAvatarRequest.cs
442441
src/VRChat.API/Model/UpdateFavoriteGroupRequest.cs
443442
src/VRChat.API/Model/UpdateGroupGalleryRequest.cs
444443
src/VRChat.API/Model/UpdateGroupMemberRequest.cs
444+
src/VRChat.API/Model/UpdateGroupRepresentationRequest.cs
445445
src/VRChat.API/Model/UpdateGroupRequest.cs
446446
src/VRChat.API/Model/UpdateGroupRoleRequest.cs
447447
src/VRChat.API/Model/UpdateInviteMessageRequest.cs

docs/GroupsApi.md

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
4646
| [**UpdateGroupGallery**](GroupsApi.md#updategroupgallery) | **PUT** /groups/{groupId}/galleries/{groupGalleryId} | Update Group Gallery |
4747
| [**UpdateGroupMember**](GroupsApi.md#updategroupmember) | **PUT** /groups/{groupId}/members/{userId} | Update Group Member |
4848
| [**UpdateGroupPost**](GroupsApi.md#updategrouppost) | **PUT** /groups/{groupId}/posts/{notificationId} | Edits a Group post |
49+
| [**UpdateGroupRepresentation**](GroupsApi.md#updategrouprepresentation) | **PUT** /groups/{groupId}/representation | Update Group Representation |
4950
| [**UpdateGroupRole**](GroupsApi.md#updategrouprole) | **PUT** /groups/{groupId}/roles/{groupRoleId} | Update Group Role |
5051

5152
<a name="addgroupgalleryimage"></a>
@@ -4254,6 +4255,106 @@ catch (ApiException e)
42544255

42554256
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
42564257

4258+
<a name="updategrouprepresentation"></a>
4259+
# **UpdateGroupRepresentation**
4260+
> Success UpdateGroupRepresentation (string groupId, UpdateGroupRepresentationRequest updateGroupRepresentationRequest)
4261+
4262+
Update Group Representation
4263+
4264+
Updates whether the user is representing the group. When `isRepresenting` is set to `true`, this flag will be set to `false` for all other groups
4265+
4266+
### Example
4267+
```csharp
4268+
using System.Collections.Generic;
4269+
using System.Diagnostics;
4270+
using VRChat.API.Api;
4271+
using VRChat.API.Client;
4272+
using VRChat.API.Model;
4273+
4274+
namespace Example
4275+
{
4276+
public class UpdateGroupRepresentationExample
4277+
{
4278+
public static void Main()
4279+
{
4280+
Configuration config = new Configuration();
4281+
config.BasePath = "https://api.vrchat.cloud/api/1";
4282+
// Configure API key authorization: authCookie
4283+
config.AddApiKey("auth", "YOUR_API_KEY");
4284+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
4285+
// config.AddApiKeyPrefix("auth", "Bearer");
4286+
4287+
var apiInstance = new GroupsApi(config);
4288+
var groupId = grp_00000000-0000-0000-0000-000000000000; // string | Must be a valid group ID.
4289+
var updateGroupRepresentationRequest = new UpdateGroupRepresentationRequest(); // UpdateGroupRepresentationRequest |
4290+
4291+
try
4292+
{
4293+
// Update Group Representation
4294+
Success result = apiInstance.UpdateGroupRepresentation(groupId, updateGroupRepresentationRequest);
4295+
Debug.WriteLine(result);
4296+
}
4297+
catch (ApiException e)
4298+
{
4299+
Debug.Print("Exception when calling GroupsApi.UpdateGroupRepresentation: " + e.Message);
4300+
Debug.Print("Status Code: " + e.ErrorCode);
4301+
Debug.Print(e.StackTrace);
4302+
}
4303+
}
4304+
}
4305+
}
4306+
```
4307+
4308+
#### Using the UpdateGroupRepresentationWithHttpInfo variant
4309+
This returns an ApiResponse object which contains the response data, status code and headers.
4310+
4311+
```csharp
4312+
try
4313+
{
4314+
// Update Group Representation
4315+
ApiResponse<Success> response = apiInstance.UpdateGroupRepresentationWithHttpInfo(groupId, updateGroupRepresentationRequest);
4316+
Debug.Write("Status Code: " + response.StatusCode);
4317+
Debug.Write("Response Headers: " + response.Headers);
4318+
Debug.Write("Response Body: " + response.Data);
4319+
}
4320+
catch (ApiException e)
4321+
{
4322+
Debug.Print("Exception when calling GroupsApi.UpdateGroupRepresentationWithHttpInfo: " + e.Message);
4323+
Debug.Print("Status Code: " + e.ErrorCode);
4324+
Debug.Print(e.StackTrace);
4325+
}
4326+
```
4327+
4328+
### Parameters
4329+
4330+
| Name | Type | Description | Notes |
4331+
|------|------|-------------|-------|
4332+
| **groupId** | **string** | Must be a valid group ID. | |
4333+
| **updateGroupRepresentationRequest** | [**UpdateGroupRepresentationRequest**](UpdateGroupRepresentationRequest.md) | | |
4334+
4335+
### Return type
4336+
4337+
[**Success**](Success.md)
4338+
4339+
### Authorization
4340+
4341+
[authCookie](../README.md#authCookie)
4342+
4343+
### HTTP request headers
4344+
4345+
- **Content-Type**: application/json
4346+
- **Accept**: application/json
4347+
4348+
4349+
### HTTP response details
4350+
| Status code | Description | Response headers |
4351+
|-------------|-------------|------------------|
4352+
| **200** | Successful response after updating group representation. | - |
4353+
| **401** | Error response due to missing auth cookie. | - |
4354+
| **403** | Error response when trying to perform operations on a group you are not member of. | - |
4355+
4356+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
4357+
42574358
<a name="updategrouprole"></a>
42584359
# **UpdateGroupRole**
42594360
> List&lt;GroupRole&gt; UpdateGroupRole (string groupId, string groupRoleId, UpdateGroupRoleRequest updateGroupRoleRequest = null)

0 commit comments

Comments
 (0)