Environment
Creates a Environment resource.
Creates a Environment resource.
post/v1/environments
Request
- Base URL: https://api.fortrabbit.com
- URL: https://api.fortrabbit.com/v1/environments
- Auth: HTTP bearer
Request body
Example request
{
"appId": "ap-a1b2c3",
"name": "staging",
"deployment": {
"git": {
"branch": "main",
"directory": "/"
},
"buildCommands": [
"composer install --no-dev"
],
"postDeployCommands": [
"php artisan migrate --force"
],
"startFirstDeployment": true
},
"softwareVersion": "11",
"components": {
"php": "sm",
"storage": "xs",
"traffic": "xs",
"backups": "xs"
},
"autoscaling": true,
"phpVersion": "8.4",
"sourceEnvironment": "en-a1b2c3",
"environmentVariables": {
"APP_ENV": "production"
}
}Response
Environment resource created
Example response
{
"environmentVariables": {
"APP_ENV": "production"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.