Rooms

Rooms related operations

Creates a room instance on the server.

post
/add
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
UniqueIDinteger · int64 · min: 1Required

Unique ID of the room instance. This ID is used to identify the room in the server.

Secretstring · min: 4 · max: 128Required

Secret used for authenticating Simulator connections.

MaxClientsinteger · min: 1 · max: 65535Required

Maximum number of clients allowed to connect to the room instance.

Default: 10
MaxEntitiesinteger · min: 1Required

Maximum number of entities allowed to be created in the room instance.

Default: 65534
MaxQueriesPerClientinteger · min: 1Required

Maximum number of queries that each client can have active at any time.

Default: 15
SchemaNamestringOptional

Name of the schema to be used for the room instance.

Default: ""
SchemaTimeoutinteger · min: 1Optional

How long (in seconds) the schema should be cached in the server before being removed.

Default: 60
SchemaUrlsstring[]Optional

URLs of the schemas to be used for the room instance.

Default: []
Schemasstring[]Optional

List of schemas to be used for the room instance.

Default: []
DisconnectTimeoutinteger · uint32 · min: 1Required

How long (in milliseconds) the server should wait before closing the connection to a client that hasn't sent any data.

Default: 5000
DebugStreamsbooleanOptional

Whether to enable debug streams for the room instance.

Default: false
SendFrequencyinteger · min: 1 · max: 256Required

Frequency (Hz) at which the server should send updates to clients.

Default: 20
RecvFrequencyinteger · uint8 · min: 1 · max: 255Required

Frequency (Hz) at which the server expects to receive updates from clients.

Default: 60
MinQueryDistancenumber · floatOptional

Minimum displacement distance for a query to be considered changed.

Default: 0.01
CleanupTimeoutinteger · min: 1Required

How long (in seconds) the server should wait before removing a room instance that has no active clients.

Default: 5
ProjectIDstringRequired

ID of the project to which the room instance belongs.

Tagsstring[]Optional

Tags associated with the room instance.

Createdstring · date-timeOptional

Timestamp indicating when the room instance was created.

HostAuthoritystringOptional

Comma-separated list of host authority features. Valid values are "create-entities" and "validate-connection". Example "create-entities,validate-connection"

Default: ""
Responses
200

Room was created successfully

application/json
post
/add

Closes a room instance on the server.

post
/remove
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
RoomIDinteger · uint16 · min: 1 · max: 65535Required

ID of the room instance as assigned by the server.

Responses
200

Room was closed successfully

No content

post
/remove

No content

Fetches the list of rooms on the server.

get
/get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

List of rooms was fetched successfully

application/json
get
/get

Sets the Key-Value (KVP) data for a room instance.

post
/kv
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
RoomIDinteger · uint16 · min: 1 · max: 65535Required

ID of the room instance as assigned by the server.

Responses
200

KVP data was set successfully

application/json
post
/kv

Sets the Private Key-Value Pair (KVP) data for a room instance.

post
/pkv
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
RoomIDinteger · uint16 · min: 1 · max: 65535Required

ID of the room instance as assigned by the server.

Responses
200

Private KVP data was set successfully

application/json
post
/pkv

Sets the tags for a room instance.

post
/tags
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
RoomIDinteger · uint16 · min: 1 · max: 65535Required

ID of the room instance as assigned by the server.

Tagsstring[] · max: 128Required

Tags to be set for the room instance.

Responses
200

Tags were set successfully

application/json
post
/tags

Last updated

Was this helpful?