5.4 KiB
5.4 KiB
InstancesApi
All URIs are relative to https://api.vrchat.cloud/api/1
| Method | HTTP request | Description |
|---|---|---|
| closeInstance | DELETE /instances/{worldId}:{instanceId} | Close Instance |
| createInstance | POST /instances | Create Instance |
| getInstance | GET /instances/{worldId}:{instanceId} | Get Instance |
| getInstanceByShortName | GET /instances/s/{shortName} | Get Instance By Short Name |
| getRecentLocations | GET /instances/recent | List Recent Locations |
| getShortName | GET /instances/{worldId}:{instanceId}/shortName | Get Instance Short Name |
closeInstance
Instance closeInstance(worldId, instanceId, hardClose, closedAt)
Close Instance
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-manage` permission.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| worldId | String | Must be a valid world ID. | [default to null] |
| instanceId | String | Must be a valid instance ID. | [default to null] |
| hardClose | Boolean | Whether to hard close the instance. Defaults to false. | [optional] [default to null] |
| closedAt | Date | The time after which users won't be allowed to join the instances. If omitted, the instance will be closed immediately. | [optional] [default to null] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
createInstance
Instance createInstance(CreateInstanceRequest)
Create Instance
Create an instance
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| CreateInstanceRequest | CreateInstanceRequest |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
getInstance
Instance getInstance(worldId, instanceId)
Get Instance
Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| worldId | String | Must be a valid world ID. | [default to null] |
| instanceId | String | Must be a valid instance ID. | [default to null] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
getInstanceByShortName
Instance getInstanceByShortName(shortName)
Get Instance By Short Name
Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| shortName | String | Must be a valid instance short name. | [default to null] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
getRecentLocations
List getRecentLocations(n, offset)
List Recent Locations
Returns a list of recently visited locations.
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
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
getShortName
InstanceShortNameResponse getShortName(worldId, instanceId)
Get Instance Short Name
Returns an instance short name.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| worldId | String | Must be a valid world ID. | [default to null] |
| instanceId | String | Must be a valid instance ID. | [default to null] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json