> Markdown version of https://tuna.am/en/docs/api/secrets-default-environment-save/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# Save default environments

post`/v1/secrets/default_environments`

The submitted list fully replaces the team's list. Entries without a name or alias are skipped, duplicate aliases are merged, and entries beyond the limit are dropped. Existing projects don't change. Available to team admins.

## Request

### Authorization

* **Authorization**stringheaderrequired

  Key in the format `Bearer <API-key>`. Create a key on the [API keys](https://my.tuna.am/api_keys) page.

### Request body

application/json

* Array \[
* **branches**string

  Comma-separated names of branch configurations created along with the environment

  **Example:&#x20;**`local,review`

  **name**string

  Name

  **Example:&#x20;**`Production`

  **personal_configs**boolean

  Personal configurations

  **slug**string

  Alias

  **Example:&#x20;**`production`

  ]

### Response

200

application/json

* Array \[
* **branches**string

  Comma-separated names of branch configurations created along with the environment

  **Example:&#x20;**`local,review`

  **name**string

  Name

  **Example:&#x20;**`Production`

  **personal_configs**boolean

  Personal configurations

  **slug**string

  Alias

  **Example:&#x20;**`production`

  ]
