Skip to content

Create Environment

POST
/api/environments/project/{project_id}
curl --request POST \
--url http://localhost:8080/api/environments/project/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "base_url": "example" }'
project_id
required
Project Id
string
Media typeapplication/json
EnvironmentCreate
object
name
required
Name
string
base_url
required
Base Url
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"
}
]
}