Skip to main content

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

  • Authorizationstringheaderrequired

    Key in the format Bearer <API-key>. Create a key on the API keys page.

Request body

  • Array [
  • branchesstring

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

    Example: local,review
    namestring

    Name

    Example: Production
    personal_configsboolean

    Personal configurations

    slugstring

    Alias

    Example: production
  • ]

Response

  • Array [
  • branchesstring

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

    Example: local,review
    namestring

    Name

    Example: Production
    personal_configsboolean

    Personal configurations

    slugstring

    Alias

    Example: production
  • ]