POST
/v1/training/environmentsCreate 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
201Success. Example response excerpt.
422Invalid request.
Response
detailarray<object>detail
ctxobjectinputanylocarray<string | integer>requiredmsgstringrequiredtypestringrequired
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