Restart bots
POST
Forces the selected bots to establish fresh connections.
header
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
instance_id*stringFormat
uuidapplication/json- body
Reconnects a batch of bots and leaves their desired state set to running.
botIds*array<string>Format
uuidSuccessful response.
application/json- response
bots*array<>curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots:restart' \
-H 'Content-Type: application/json' \
-d '{
"botIds": [
"string"
]
}'Example Response
{
"bots": [
{
"profileId": "faebe71b-2bf8-4bdb-9b67-258e4d6aa00a",
"desiredState": "BOT_DESIRED_STATE_UNSPECIFIED",
"runtimeState": "BOT_RUNTIME_STATE_UNSPECIFIED",
"lastError": "string",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
}Was this page helpful?
Reset movement POST
Resets all movement to stopped state. Equivalent to releasing all movement keys. The action is queued and executed on the next game tick.
Set bot desired state POST
Persists whether the selected bots should be running or stopped. The request returns after the desired state is durable. Connections are reconciled asynchronously and can be observed through WatchBotStatuses.
