Zum Inhalt springen
SoulFire LogoSoulFire

Renew bot control

Diese Anleitung gibt es nur auf Englisch.

POST
/v1/instances/{instance_id}/bots/{bot_id}/control:renew

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Path Parameters

instance_id*string
Formatuuid
bot_id*string
Formatuuid

Request Body

application/json
  1. body
token*string
ttlSeconds?integer
Formatint64
Range0 <= value <= 4294967295

Response Body

Successful response.

application/json
  1. response
lease*
Example Request
curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/control:renew' \
  -H 'Content-Type: application/json' \
  -d '{
  "token": "string"
}'
Example Response
{
  "lease": {
    "token": "string",
    "expiresAt": "2019-08-24T14:15:22Z"
  }
}

War diese Seite hilfreich?