Skip to content

Update Environment

PUT
/api/environments/{env_id}
curl --request PUT \
--url http://localhost:8080/api/environments/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "base_url": "example" }'
env_id
required
Env Id
string
Media typeapplication/json
EnvironmentUpdate
object
name
Any of:
string
base_url
Any of:
string
Examplegenerated
{
"name": "example",
"base_url": "example"
}

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}