You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**worldId**|**String**| WorldID be \"offline\" on User profiles if you are not friends with that user. ||
11
+
|**type**|**InstanceType**|||
12
+
|**region**|**Region**|||
13
+
|**ownerId**|**String**| A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise |[optional]|
14
+
|**roleIds**|**List<String>**| Group roleIds that are allowed to join if the type is \"group\" and groupAccessType is \"member\" |[optional]|
Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
21
+
Close an instance or update the closedAt time when it will be closed. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
21
22
22
23
### Example
23
24
```java
@@ -44,8 +45,9 @@ public class Example {
44
45
String worldId ="worldId_example"; // String | Must be a valid world ID.
45
46
String instanceId ="instanceId_example"; // String | Must be a valid instance ID.
46
47
Boolean hardClose =true; // Boolean | Whether to hard close the instance. Defaults to false.
48
+
OffsetDateTime closedAt =OffsetDateTime.now(); // OffsetDateTime | The time after which users won't be allowed to join the instances. If omitted, the instance will be closed immediately.
47
49
try {
48
-
Instance result = apiInstance.closeInstance(worldId, instanceId, hardClose);
50
+
Instance result = apiInstance.closeInstance(worldId, instanceId, hardClose, closedAt);
49
51
System.out.println(result);
50
52
} catch (ApiException e) {
51
53
System.err.println("Exception when calling InstancesApi#closeInstance");
@@ -65,6 +67,7 @@ public class Example {
65
67
|**worldId**|**String**| Must be a valid world ID. ||
66
68
|**instanceId**|**String**| Must be a valid instance ID. ||
67
69
|**hardClose**|**Boolean**| Whether to hard close the instance. Defaults to false. |[optional]|
70
+
|**closedAt**|**OffsetDateTime**| The time after which users won't be allowed to join the instances. If omitted, the instance will be closed immediately. |[optional]|
68
71
69
72
### Return type
70
73
@@ -87,6 +90,76 @@ public class Example {
87
90
|**403**| Error response due to not being allowed to close an instance | - |
88
91
|**404**| Error response due to non existant instance | - |
0 commit comments