---
title: "Applied from Spala Step Script."
method: POST
path: "/api/projects/{projectId}/environments/production"
tags: ["projects"]
---

# Applied from Spala Step Script.

`POST /api/projects/{projectId}/environments/production`

## Request

- Base URL: `https://api.spala.ai/api`
- URL: `https://api.spala.ai/api/api/projects/{projectId}/environments/production`
- Auth: HTTP bearer

## Path parameters

- `projectId` string, required

## Request body

- object
  - `runtime_mode` string, required
  - `database_ownership` string, required
  - `database_display_host` string
  - `region` string

## Response `200`

Successful response

- object
  - `environment` object
  - `project_id` string
  - `environment_type` string
  - `display_name` string
  - `status` string
  - `runtimeAttachments` object[]
    - `id` string
    - `cold_start_eligible` boolean
    - `environment_id` string
    - `infrastructure_host_id` string
    - `isolation_class` string
    - `organization_id` string
    - `project_id` string
    - `provider` string
    - `region` string
    - `runtime_mode` string
    - `runtime_profile` string
    - `status` string
  - `databaseAttachments` object[]
    - `id` string
    - `database_name` string
    - `database_role` string
    - `display_host` string
    - `environment_id` string
    - `is_active` boolean
    - `organization_id` string
    - `ownership` string
    - `project_id` string
    - `provider` string
    - `quota_bytes` number
    - `status` string

## Other responses

- `401`: Unauthorized - authentication required

---

[API](https://skmtc.dev/spala/apis/admin.md) · [All operations](https://skmtc.dev/spala/apis/admin/llms.txt) · [OpenAPI document](https://skmtc.dev/spala/apis/admin/revisions/723cc50571ee?raw)
