Acquire bot control
Was this page helpful?
Was this page helpful?
Acquires exclusive action control for a bot. While the lease is active, action calls must include its token in the X-SoulFire-Control-Token request header.
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
instance_id*stringuuidbot_id*stringuuidapplication/jsonExclusive control lease for coordinating multiple SDK clients, scripts, and independent SDK controllers and server tasks against the same bot.
ttlSeconds?integerRequested lease lifetime. The server clamps this to its configured range.
int640 <= value <= 4294967295Successful response.
application/jsonlease*curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/control:acquire' \ -H 'Content-Type: application/json' \ -d '{}'{ "lease": { "token": "string", "expiresAt": "2019-08-24T14:15:22Z" }}curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/control:acquire' \
-H 'Content-Type: application/json' \
-d '{}'{
"lease": {
"token": "string",
"expiresAt": "2019-08-24T14:15:22Z"
}
}