POST/v1/training/environments

Create an environment

Requires training:write. Create or return the collection with this name in the organization. Import task data separately as a version.

Authentication: Bearer API key in the Authorization header

Request body

  • namestringrequired

Responses

  • 201

    Success. Example response excerpt.

  • 422

    Invalid request.

    Response
    • detailarray<object>
      detail
      • ctxobject
      • inputany
      • locarray<string | integer>required
      • msgstringrequired
      • typestringrequired

Request

curl -X POST 'https://api.staging.experientiallabs.ai/v1/training/environments' \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "terminal-tasks"
}'

Response

{
  "id": "00000000-0000-4000-8000-000000000003",
  "name": "terminal-tasks"
}

https://api.staging.experientiallabs.ai/v1/training/environments