Deploy To Environment
POSThttps://cloud.agenta.ai/api/environments/deploy
Deploys a given variant to an environment
Args: environment_name: Name of the environment to deploy to. variant_id: variant id to deploy. stoken_session: . Defaults to Depends(verify_session()).
Raises: HTTPException: If the deployment fails.
Request
- application/json
Body
required
environment_name Environment Name (string)required
variant_id Variant Id (string)required
Responses
- 200
- 422
Successful Response
- application/json
- Schema
Schema
any
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
detail
object[]
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://cloud.agenta.ai/api/environments/deploy' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"environment_name": "string",
"variant_id": "string"
}'
ResponseClear