Przejdź do treści
SoulFire LogoSoulFire

Create instance

Ten poradnik jest dostępny tylko po angielsku.

POST
/v1/instances

Creates a new instance with the given friendly name.

Authorization

headerAuthorizationBearer <JWT>

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

Request Body

application/json
  1. body

Request to create a new instance.

friendlyName*string

A human-readable name for the instance. This will be displayed in the UI and can be changed later via UpdateInstanceMeta.

Response Body

Response after successfully creating an instance.

application/json
  1. response

Response after successfully creating an instance.

id*string

The unique identifier (UUID) of the newly created instance. Use this ID for all subsequent operations on the instance.

Formatuuid
Example Request
curl -X POST 'http://127.0.0.1:38765/v1/instances' \
  -H 'Content-Type: application/json' \
  -d '{
  "friendlyName": ""
}'
Example Response
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}

Czy ta strona jest pomocna?